1
0
Fork 0
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:
Michael DeHaan 2013-03-11 17:58:27 -04:00
parent 0dbfa02f0c
commit a22009806e

View file

@ -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")