mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 15:21:25 -07:00
now only flattened ignores failonundefined cause of it's special need
This commit is contained in:
parent
e3feb104c3
commit
db145a368d
2 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ class LookupModule(object):
|
|||
|
||||
if isinstance(term, basestring):
|
||||
# convert a variable to a list
|
||||
term2 = utils.listify_lookup_plugin_terms(term, self.basedir, inject)
|
||||
term2 = utils.listify_lookup_plugin_terms(term, self.basedir, inject, fail_on_undefined=False)
|
||||
# but avoid converting a plain string to a list of one string
|
||||
if term2 != [ term ]:
|
||||
term = term2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue