1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix NameError when using loops

vars_copy disappeared in 3d1255d190.

Fixes #13213.
This commit is contained in:
Marius Gedminas 2015-11-19 09:21:06 +02:00
parent 3d1255d190
commit 66347c9449

View file

@ -188,7 +188,7 @@ class TaskExecutor:
else:
raise
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:
raise AnsibleError("Unexpected failure in finding the lookup named '%s' in the available lookup plugins" % self._task.loop)