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
3c7a502c
Commit
3c7a502c
authored
Jul 16, 2015
by
Gerard Lynch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated to new location and non-classness of module_common
parent
888bda93
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hacking/test-module
+3
-3
No files found.
hacking/test-module
View file @
3c7a502c
...
...
@@ -37,7 +37,7 @@ import optparse
import
ansible.utils
as
utils
from
ansible.parsing.utils.jsonify
import
jsonify
from
ansible.parsing.splitter
import
parse_kv
import
ansible.module_common
as
module_common
import
ansible.
executor.
module_common
as
module_common
import
ansible.constants
as
C
try
:
...
...
@@ -89,7 +89,7 @@ def boilerplate_module(modfile, args, interpreter, check):
#module_data = module_fh.read()
#module_fh.close()
replacer
=
module_common
.
ModuleReplacer
()
#
replacer = module_common.ModuleReplacer()
#included_boilerplate = module_data.find(module_common.REPLACER) != -1 or module_data.find("import ansible.module_utils") != -1
...
...
@@ -118,7 +118,7 @@ def boilerplate_module(modfile, args, interpreter, check):
if
check
:
complex_args
[
'CHECKMODE'
]
=
True
(
module_data
,
module_style
,
shebang
)
=
replacer
.
modify_module
(
(
module_data
,
module_style
,
shebang
)
=
module_common
.
modify_module
(
modfile
,
complex_args
,
args
,
...
...
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