diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-02-26 16:57:32 -0800 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-03-21 12:51:51 -0400 |
commit | f75be95936b0d9fc214b136c989044cd117a518e (patch) | |
tree | db7e331dbda42b78445f629e394cb8b1e8eb07bd | |
parent | 924fff7c85a7f4fa5ce9982011817ba1c6c33f76 (diff) | |
download | ansible-f75be95936b0d9fc214b136c989044cd117a518e.tar.gz |
We are actually taking the repr of a string so we need separate to_bytes and repr calls
-rw-r--r-- | lib/ansible/executor/module_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/executor/module_common.py b/lib/ansible/executor/module_common.py index e6fa2148b8..9d50be0ca3 100644 --- a/lib/ansible/executor/module_common.py +++ b/lib/ansible/executor/module_common.py @@ -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)) # 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_WINARGS, module_args_json) module_data = module_data.replace(REPLACER_JSONARGS, module_args_json) |