mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 04:12:48 +00:00
Fix bug in nested lookup where pop is called indiscriminately
This commit is contained in:
@@ -27,7 +27,7 @@ class LookupModule(LookupBase):
|
|||||||
|
|
||||||
def _lookup_variables(self, terms, variables):
|
def _lookup_variables(self, terms, variables):
|
||||||
foo = variables.copy()
|
foo = variables.copy()
|
||||||
foo.pop('vars')
|
foo.pop('vars', None)
|
||||||
results = []
|
results = []
|
||||||
for x in terms:
|
for x in terms:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user