From a64f7fd6022ccd50e2da24ceb7d3e5475d0c10e9 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 19 Jun 2016 19:21:25 +0000 Subject: [PATCH] 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. --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index b89b191cdec..09571471458 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))