From a22009806e374a9ed67e64bc8b65312bcabab622 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 11 Mar 2013 17:58:27 -0400 Subject: [PATCH] Nested iteration would make more sense in this order. --- lib/ansible/runner/lookup_plugins/nested.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/lookup_plugins/nested.py b/lib/ansible/runner/lookup_plugins/nested.py index 40070237f23..bd66a5f27cf 100644 --- a/lib/ansible/runner/lookup_plugins/nested.py +++ b/lib/ansible/runner/lookup_plugins/nested.py @@ -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")