mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
We are actually taking the repr of a string so we need separate to_bytes and repr calls
This commit is contained in:
parent
b70bf3b056
commit
e01b6ad6b4
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ def modify_module(module_path, module_args, task_vars=dict(), strip_comments=Fal
|
||||||
python_repred_args = to_bytes(repr(module_args_json))
|
python_repred_args = to_bytes(repr(module_args_json))
|
||||||
|
|
||||||
# these strings should be part of the 'basic' snippet which is required to be included
|
# these strings should be part of the 'basic' snippet which is required to be included
|
||||||
module_data = module_data.replace(REPLACER_VERSION, to_bytes(__version__, nonstring='repr'))
|
module_data = module_data.replace(REPLACER_VERSION, to_bytes(repr(__version__)))
|
||||||
module_data = module_data.replace(REPLACER_COMPLEX, python_repred_args)
|
module_data = module_data.replace(REPLACER_COMPLEX, python_repred_args)
|
||||||
module_data = module_data.replace(REPLACER_WINARGS, module_args_json)
|
module_data = module_data.replace(REPLACER_WINARGS, module_args_json)
|
||||||
module_data = module_data.replace(REPLACER_JSONARGS, module_args_json)
|
module_data = module_data.replace(REPLACER_JSONARGS, module_args_json)
|
||||||
|
|
Loading…
Reference in a new issue