mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Nested iteration would make more sense in this order.
This commit is contained in:
parent
0dbfa02f0c
commit
a22009806e
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ class LookupModule(object):
|
|||
if not isinstance(terms, list):
|
||||
raise errors.AnsibleError("a list is required for with_nested")
|
||||
my_list = terms[:]
|
||||
my_list.reverse()
|
||||
result = []
|
||||
if len(my_list) == 0:
|
||||
raise errors.AnsibleError("with_nested requires at least one list")
|
||||
|
|
Loading…
Reference in a new issue