From 087dbc1ed50516391f30589d58f00627e9288b0b Mon Sep 17 00:00:00 2001 From: Sebastien Couture Date: Fri, 20 Nov 2015 12:58:50 -0500 Subject: [PATCH] We should give pipes.quote() a string every time --- 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 124321e67bd..fcbd1e2c21e 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -409,7 +409,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(v)) + args_data += '%s="%s" ' % (k, pipes.quote(text_type(v))) self._transfer_data(args_file_path, args_data) display.debug("done transferring module to remote")