Fix quoting of args for old-style modules
This removes the extra layer of quotes around values in the 'args' file. These quotes were there before the pipes.quote() call was added, but were not removed, resulting in too much quoting.
This commit is contained in:
parent
3b6b4f6ce4
commit
167a12003d
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
# the remote system, which can be read and parsed by the module
|
||||
args_data = ""
|
||||
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)
|
||||
elif module_style == 'non_native_want_json':
|
||||
self._transfer_data(args_file_path, json.dumps(module_args))
|
||||
|
|
Loading…
Reference in a new issue