mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Allow unicode transfer by not base64 encoding. Also: faster
This commit is contained in:
@@ -79,8 +79,9 @@ def boilerplate_module(modfile, args):
|
||||
module_fh.close()
|
||||
|
||||
if included_boilerplate:
|
||||
|
||||
module_data = module_data.replace(module_common.REPLACER, module_common.MODULE_COMMON)
|
||||
encoded_args = base64.b64encode(args)
|
||||
encoded_args = "\"\"\"%s\"\"\"" % args.replace("\"","\\\"")
|
||||
module_data = module_data.replace(module_common.REPLACER_ARGS, encoded_args)
|
||||
|
||||
modfile2_path = os.path.expanduser("~/.ansible_module_generated")
|
||||
|
||||
Reference in New Issue
Block a user