Merge pull request #13214 from mgedmin/fix-loops

Fix NameError when using loops
pull/13217/head
James Cammarata 9 years ago
commit 6912c046bb

@ -188,7 +188,7 @@ class TaskExecutor:
else: else:
raise raise
items = self._shared_loader_obj.lookup_loader.get(self._task.loop, loader=self._loader, items = self._shared_loader_obj.lookup_loader.get(self._task.loop, loader=self._loader,
templar=templar).run(terms=loop_terms, variables=vars_copy) templar=templar).run(terms=loop_terms, variables=self._job_vars)
else: else:
raise AnsibleError("Unexpected failure in finding the lookup named '%s' in the available lookup plugins" % self._task.loop) raise AnsibleError("Unexpected failure in finding the lookup named '%s' in the available lookup plugins" % self._task.loop)

Loading…
Cancel
Save