mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-08 19:49:09 +00:00
Allow unicode transfer by not base64 encoding. Also: faster
This commit is contained in:
parent
227dfc17f3
commit
ce01c3f7e7
4 changed files with 9 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue