Shell-quote environment contents
parent
27f3ba53f9
commit
e32fbd312f
|
@ -228,10 +228,10 @@ class Runner(object):
|
|||
return ""
|
||||
enviro = utils.template(self.basedir, self.environment, inject)
|
||||
if type(enviro) != dict:
|
||||
raise errors.AnsibleError("environment must be a dictionary, recieved %s" % enviro)
|
||||
raise errors.AnsibleError("environment must be a dictionary, received %s" % enviro)
|
||||
result = ""
|
||||
for (k,v) in enviro.iteritems():
|
||||
result = "%s=%s %s" % (k, str(v), result)
|
||||
result = "%s=%s %s" % (k, pipes.quote(str(v)), result)
|
||||
return result
|
||||
|
||||
# *****************************************************
|
||||
|
|
Loading…
Reference in New Issue