diff --git a/hacking/test-module b/hacking/test-module index b7069cec864..dd031ccc5bc 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