mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixes #6244
This commit is contained in:
parent
9de3b035a6
commit
118d24d171
1 changed files with 2 additions and 2 deletions
|
@ -633,13 +633,13 @@ class Runner(object):
|
|||
all_failed = False
|
||||
results = []
|
||||
for x in items:
|
||||
# use a fresh inject for each item
|
||||
# use a fresh inject for each item
|
||||
this_inject = inject.copy()
|
||||
this_inject['item'] = x
|
||||
|
||||
# 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)
|
||||
|
|
Loading…
Reference in a new issue