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
4add30c9
Commit
4add30c9
authored
Jan 14, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize away a string replacement :-)
parent
4010f794
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
v2/ansible/executor/module_common.py
+0
-1
v2/ansible/module_utils/basic.py
+1
-1
No files found.
v2/ansible/executor/module_common.py
View file @
4add30c9
...
...
@@ -156,7 +156,6 @@ class ModuleReplacer(object):
# these strings should be part of the 'basic' snippet which is required to be included
module_data
=
module_data
.
replace
(
REPLACER_VERSION
,
repr
(
__version__
))
module_data
=
module_data
.
replace
(
REPLACER_ARGS
,
"''"
)
module_data
=
module_data
.
replace
(
REPLACER_COMPLEX
,
encoded_args
)
# FIXME: we're not passing around an inject dictionary anymore, so
...
...
v2/ansible/module_utils/basic.py
View file @
4add30c9
...
...
@@ -31,7 +31,7 @@
ANSIBLE_VERSION
=
"<<ANSIBLE_VERSION>>"
MODULE_ARGS
=
"
<<INCLUDE_ANSIBLE_MODULE_ARGS>>
"
MODULE_ARGS
=
""
MODULE_COMPLEX_ARGS
=
"<<INCLUDE_ANSIBLE_MODULE_COMPLEX_ARGS>>"
BOOLEANS_TRUE
=
[
'yes'
,
'on'
,
'1'
,
'true'
,
1
]
...
...
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