diff options
author | Brian Coca <bcoca@ansible.com> | 2015-07-16 19:01:35 -0400 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2015-07-16 19:01:35 -0400 |
commit | 95bf78d0e73d48428d9306a22e186f4a37cbedc2 (patch) | |
tree | 83201cef530a93750b13439a13766065e703f35d /hacking/test-module | |
parent | f146c7680fb7b0f527923264f2105e5788d75081 (diff) | |
parent | 3c7a502c503c9d2171cbd90ed1ad44da1ec18f5c (diff) | |
download | ansible-95bf78d0e73d48428d9306a22e186f4a37cbedc2.tar.gz |
Merge pull request #11618 from halberom/test-module
hacking/test-module, updated to new location and non-classness of module_common
Diffstat (limited to 'hacking/test-module')
-rwxr-xr-x | hacking/test-module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hacking/test-module b/hacking/test-module index be8926f3f6..0cbddf6073 100755 --- a/hacking/test-module +++ b/hacking/test-module @@ -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: @@ -90,7 +90,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 @@ -119,7 +119,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, |