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
b3eb1f32
Commit
b3eb1f32
authored
Feb 17, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update hacking/test_module script to be aware of complex arguments, though it does not pass them.
parent
ad89ab7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
hacking/test-module
+2
-0
No files found.
hacking/test-module
View file @
b3eb1f32
...
...
@@ -85,8 +85,10 @@ def boilerplate_module(modfile, args):
encoded_args
=
"
\"\"\"
%
s
\"\"\"
"
%
args
.
replace
(
"
\"
"
,
"
\\\"
"
)
module_data
=
module_data
.
replace
(
module_common
.
REPLACER_ARGS
,
encoded_args
)
encoded_lang
=
"
\"\"\"
%
s
\"\"\"
"
%
C
.
DEFAULT_MODULE_LANG
empty_complex
=
"
\"\"\"
%
s
\"\"\"
"
%
"{}"
module_data
=
module_data
.
replace
(
module_common
.
REPLACER_LANG
,
encoded_lang
)
module_data
=
module_data
.
replace
(
'syslog.LOG_USER'
,
"syslog.
%
s"
%
C
.
DEFAULT_SYSLOG_FACILITY
)
module_data
=
module_data
.
replace
(
module_common
.
REPLACER_COMPLEX
,
empty_complex
)
modfile2_path
=
os
.
path
.
expanduser
(
"~/.ansible_module_generated"
)
print
"* including generated source, if any, saving to:
%
s"
%
modfile2_path
...
...
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