mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Ensure that an empty literal list with loop skips the task (#47129)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user