summaryrefslogtreecommitdiff
path: root/hacking/test-module
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2013-02-17 17:33:12 -0500
committerMichael DeHaan <michael.dehaan@gmail.com>2013-02-17 17:33:42 -0500
commitb3eb1f32e346b25dd5dae617238efdfc7d7382e4 (patch)
treebde4fbb11041ec39f0e6854cbb7c1feb5701c60a /hacking/test-module
parentad89ab7c5da100d0902da4899b29bf0ad405f2fd (diff)
downloadansible-b3eb1f32e346b25dd5dae617238efdfc7d7382e4.tar.gz
update hacking/test_module script to be aware of complex arguments, though it does not pass them.
Diffstat (limited to 'hacking/test-module')
-rwxr-xr-xhacking/test-module2
1 files changed, 2 insertions, 0 deletions
diff --git a/hacking/test-module b/hacking/test-module
index b7069cec86..dd031ccc5b 100755
--- a/hacking/test-module
+++ b/hacking/test-module
@@ -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