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