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: