mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Ensure that an empty literal list with loop skips the task (#47129)
This commit is contained in:
parent
4fc6ab55aa
commit
02f4d0a57f
3 changed files with 9 additions and 1 deletions
|
@ -236,7 +236,7 @@ class TaskExecutor:
|
|||
else:
|
||||
raise AnsibleError("Unexpected failure in finding the lookup named '%s' in the available lookup plugins" % self._task.loop_with)
|
||||
|
||||
elif self._task.loop:
|
||||
elif self._task.loop is not None:
|
||||
items = templar.template(self._task.loop)
|
||||
if not isinstance(items, list):
|
||||
raise AnsibleError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue