This commit is contained in:
Luca Berruti 2014-03-04 18:20:01 +01:00 committed by James Cammarata
parent 9de3b035a6
commit 118d24d171

View file

@ -639,7 +639,7 @@ class Runner(object):
# TODO: this idiom should be replaced with an up-conversion to a Jinja2 template evaluation
if isinstance(self.complex_args, basestring):
complex_args = template.template(self.basedir, self.complex_args, inject, convert_bare=True)
complex_args = template.template(self.basedir, self.complex_args, this_inject, convert_bare=True)
complex_args = utils.safe_eval(complex_args)
if type(complex_args) != dict:
raise errors.AnsibleError("args must be a dictionary, received %s" % complex_args)