1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix for unicode environment variable handling

Fixes #5395
This commit is contained in:
James Cammarata 2014-03-25 20:45:04 -05:00
parent 18d82d1eb6
commit 7a3fa63db5

View file

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