From 60e1a1f8ebada1336ea01695220236f40af36bbd Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 25 Sep 2015 17:16:35 -0400 Subject: [PATCH] Fix bug in nested lookup where pop is called indiscriminately --- lib/ansible/plugins/lookup/nested.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/nested.py b/lib/ansible/plugins/lookup/nested.py index 2593aa5d9fd..8cf89b435db 100644 --- a/lib/ansible/plugins/lookup/nested.py +++ b/lib/ansible/plugins/lookup/nested.py @@ -27,7 +27,7 @@ class LookupModule(LookupBase): def _lookup_variables(self, terms, variables): foo = variables.copy() - foo.pop('vars') + foo.pop('vars', None) results = [] for x in terms: try: