Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes #6244

  • Loading branch information...
commit 357a0ae55f1f1a166e0b9b8f94b3ff271671d37d 1 parent 3091cd0
@lberruti lberruti authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ansible/runner/__init__.py
View
4 lib/ansible/runner/__init__.py
@@ -618,13 +618,13 @@ def _executor_internal(self, host, new_stdin):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.