mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Merge branch 'with_items_and_complex_args' of https://github.com/lberruti/ansible into lberruti-with_items_and_complex_args
This commit is contained in:
@@ -477,8 +477,8 @@ class Runner(object):
|
||||
inject['item'] = x
|
||||
|
||||
# TODO: this idiom should be replaced with an up-conversion to a Jinja2 template evaluation
|
||||
if isinstance(complex_args, basestring):
|
||||
complex_args = template.template(self.basedir, complex_args, inject, convert_bare=True)
|
||||
if isinstance(self.complex_args, basestring):
|
||||
complex_args = template.template(self.basedir, self.complex_args, 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)
|
||||
|
||||
Reference in New Issue
Block a user