mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 03:30:22 -07:00
commit
b5e487f2d9
1 changed files with 2 additions and 2 deletions
|
@ -624,7 +624,7 @@ class Runner(object):
|
||||||
|
|
||||||
# TODO: this idiom should be replaced with an up-conversion to a Jinja2 template evaluation
|
# TODO: this idiom should be replaced with an up-conversion to a Jinja2 template evaluation
|
||||||
if isinstance(self.complex_args, basestring):
|
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)
|
complex_args = utils.safe_eval(complex_args)
|
||||||
if type(complex_args) != dict:
|
if type(complex_args) != dict:
|
||||||
raise errors.AnsibleError("args must be a dictionary, received %s" % complex_args)
|
raise errors.AnsibleError("args must be a dictionary, received %s" % complex_args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue