diff options
author | Gerard Lynch <gerard@halberom.co.uk> | 2015-07-16 23:56:18 +0100 |
---|---|---|
committer | Gerard Lynch <gerard@halberom.co.uk> | 2015-07-16 23:56:18 +0100 |
commit | 3c7a502c503c9d2171cbd90ed1ad44da1ec18f5c (patch) | |
tree | 28913f42db773ca319196582401e01b5ca9db09d /hacking/test-module | |
parent | 888bda93c19bfc03db896c3b8e87b1c056798d26 (diff) | |
download | ansible-3c7a502c503c9d2171cbd90ed1ad44da1ec18f5c.tar.gz |
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 953f834aad..681e52a9c8 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: @@ -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, |