Merge pull request #16360 from agaffney/old_style_module_args_quoting
Fix quoting of args for old-style modules
This commit is contained in:
commit
96a96b0e97
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
# the remote system, which can be read and parsed by the module
|
# the remote system, which can be read and parsed by the module
|
||||||
args_data = ""
|
args_data = ""
|
||||||
for k,v in iteritems(module_args):
|
for k,v in iteritems(module_args):
|
||||||
args_data += '%s="%s" ' % (k, pipes.quote(text_type(v)))
|
args_data += '%s=%s ' % (k, pipes.quote(text_type(v)))
|
||||||
self._transfer_data(args_file_path, args_data)
|
self._transfer_data(args_file_path, args_data)
|
||||||
elif module_style in ('non_native_want_json', 'binary'):
|
elif module_style in ('non_native_want_json', 'binary'):
|
||||||
self._transfer_data(args_file_path, json.dumps(module_args))
|
self._transfer_data(args_file_path, json.dumps(module_args))
|
||||||
|
|
Loading…
Reference in a new issue