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