Commit a2200980 by Michael DeHaan

Nested iteration would make more sense in this order.

parent 0dbfa02f
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment