mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-20 20:00:23 -07:00
dependent lookup: avoid deprecated ansible-core 2.19 functionality (#10359)
* Avoid deprecated ansible-core 2.19 functionality. * Adjust unit tests.
This commit is contained in:
parent
4195cbb364
commit
16d6e4a8e5
3 changed files with 9 additions and 6 deletions
|
@ -197,7 +197,10 @@ class LookupModule(LookupBase):
|
|||
|
||||
result = []
|
||||
if len(terms) > 0:
|
||||
templar = Templar(loader=self._templar._loader)
|
||||
if HAS_DATATAGGING:
|
||||
templar = self._templar.copy_with_new_env(available_variables={})
|
||||
else:
|
||||
templar = Templar(loader=self._templar._loader)
|
||||
data = []
|
||||
vars_so_far = set()
|
||||
for index, term in enumerate(terms):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue