mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Merge pull request #13214 from mgedmin/fix-loops
Fix NameError when using loops
This commit is contained in:
commit
6912c046bb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue