mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix lookup into search paths when undefined.
A fileglob may issue a warning `Unable to find xxxx in expected paths` when `ansible_search_path` is not defined, because it loops over the characters in the string instead of looping over a list of one element.
This commit is contained in:
committed by
Brian Coca
parent
9e3ae8a0cb
commit
9339b0f4a7
@@ -111,7 +111,7 @@ class LookupBase(with_metaclass(ABCMeta, object)):
|
|||||||
if 'ansible_search_path' in myvars:
|
if 'ansible_search_path' in myvars:
|
||||||
paths = myvars['ansible_search_path']
|
paths = myvars['ansible_search_path']
|
||||||
else:
|
else:
|
||||||
paths = self.get_basedir(myvars)
|
paths = [self.get_basedir(myvars)]
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user