mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Fix errors in lookup plugins.
Lookup plugins 'sequence' and 'template' now import 'ansible.utils' appropriately in order to use the 'listify_lookup_plugin_terms' function. Also, 'dnstxt' and 'env' now check to see if 'terms' is a string; without this calls like '{{ lookup('env', 'HOME') }}' fail.
This commit is contained in:
parent
cce2cad8dc
commit
663d37b537
5 changed files with 9 additions and 5 deletions
|
@ -44,8 +44,8 @@ class LookupModule(object):
|
|||
|
||||
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
|
||||
|
||||
|
||||
|
||||
if isinstance(basestring, terms):
|
||||
terms = [ terms ]
|
||||
|
||||
ret = []
|
||||
for term in terms:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue