Fix for unicode environment variable handling

Fixes #5395
pull/6695/head
James Cammarata 11 years ago
parent 18d82d1eb6
commit 7a3fa63db5

@ -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
# *****************************************************

Loading…
Cancel
Save