1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix bug in nested lookup where pop is called indiscriminately

This commit is contained in:
James Cammarata 2015-09-25 17:16:35 -04:00
parent 191ae0831d
commit 60e1a1f8eb

View file

@ -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: