Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
a78edbb4
Commit
a78edbb4
authored
May 11, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More pep8
parent
50586928
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/ansible/constants.py
+1
-1
lib/ansible/runner/lookup_plugins/nested.py
+4
-4
No files found.
lib/ansible/constants.py
View file @
a78edbb4
...
...
@@ -94,7 +94,7 @@ DEFAULT_KEEP_REMOTE_FILES = get_config(p, DEFAULTS, 'keep_remote_files', 'ANSIBL
DEFAULT_SUDO_EXE
=
get_config
(
p
,
DEFAULTS
,
'sudo_exe'
,
'ANSIBLE_SUDO_EXE'
,
'sudo'
)
DEFAULT_SUDO_FLAGS
=
get_config
(
p
,
DEFAULTS
,
'sudo_flags'
,
'ANSIBLE_SUDO_FLAGS'
,
'-H'
)
DEFAULT_HASH_BEHAVIOUR
=
get_config
(
p
,
DEFAULTS
,
'hash_behaviour'
,
'ANSIBLE_HASH_BEHAVIOUR'
,
'replace'
)
DEFAULT_LEGACY_PLAYBOOK_VARIABLES
=
get_config
(
p
,
DEFAULTS
,
'legacy_playbook_variables'
,
'ANSIBLE_LEGACY_PLAYBOOK_VARIABLES'
,
'yes'
)
DEFAULT_LEGACY_PLAYBOOK_VARIABLES
=
get_config
(
p
,
DEFAULTS
,
'legacy_playbook_variables'
,
'ANSIBLE_LEGACY_PLAYBOOK_VARIABLES'
,
'yes'
)
DEFAULT_JINJA2_EXTENSIONS
=
get_config
(
p
,
DEFAULTS
,
'jinja2_extensions'
,
'ANSIBLE_JINJA2_EXTENSIONS'
,
None
)
DEFAULT_EXECUTABLE
=
get_config
(
p
,
DEFAULTS
,
'executable'
,
'ANSIBLE_EXECUTABLE'
,
'/bin/sh'
)
...
...
lib/ansible/runner/lookup_plugins/nested.py
View file @
a78edbb4
...
...
@@ -45,10 +45,10 @@ class LookupModule(object):
def
__lookup_injects
(
self
,
terms
,
inject
):
results
=
[]
for
x
in
terms
:
if
isinstance
(
x
,
basestring
)
and
x
in
inject
:
results
.
append
(
inject
[
x
])
else
:
results
.
append
(
x
)
if
isinstance
(
x
,
basestring
)
and
x
in
inject
:
results
.
append
(
inject
[
x
])
else
:
results
.
append
(
x
)
return
results
def
run
(
self
,
terms
,
inject
=
None
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment