From 7a3fa63db5cb12820ceb97ca100c340afacbab5c Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 25 Mar 2014 20:45:04 -0500 Subject: [PATCH] Fix for unicode environment variable handling Fixes #5395 --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 51655388aaf..85f4b5d0678 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -291,7 +291,7 @@ class Runner(object): raise errors.AnsibleError("environment must be a dictionary, received %s" % enviro) result = "" for (k,v) in enviro.iteritems(): - result = "%s=%s %s" % (k, pipes.quote(str(v)), result) + result = "%s=%s %s" % (k, pipes.quote(unicode(v)), result) return result # *****************************************************