diff options
author | Andrew Gaffney <andrew@agaffney.org> | 2016-06-19 19:21:25 +0000 |
---|---|---|
committer | Andrew Gaffney <andrew@agaffney.org> | 2016-06-19 19:21:25 +0000 |
commit | a64f7fd6022ccd50e2da24ceb7d3e5475d0c10e9 (patch) | |
tree | b9a38cf68aabc0a8de10d5178b3194dd3421a0b3 | |
parent | 1db02dfb71a4f9ecf7f73343faa36e84a56232c6 (diff) | |
download | ansible-a64f7fd6022ccd50e2da24ceb7d3e5475d0c10e9.tar.gz |
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.
-rw-r--r-- | lib/ansible/plugins/action/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index b89b191cde..0957147145 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -608,7 +608,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 in ('non_native_want_json', 'binary'): self._transfer_data(args_file_path, json.dumps(module_args)) |