Nested iteration would make more sense in this order.

pull/2362/merge
Michael DeHaan 12 years ago
parent 0dbfa02f0c
commit a22009806e

@ -43,6 +43,7 @@ class LookupModule(object):
if not isinstance(terms, list): if not isinstance(terms, list):
raise errors.AnsibleError("a list is required for with_nested") raise errors.AnsibleError("a list is required for with_nested")
my_list = terms[:] my_list = terms[:]
my_list.reverse()
result = [] result = []
if len(my_list) == 0: if len(my_list) == 0:
raise errors.AnsibleError("with_nested requires at least one list") raise errors.AnsibleError("with_nested requires at least one list")

Loading…
Cancel
Save