mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add a base-level get_basedir method for lookup plugins and fix relative lookups
Fixes #11746
This commit is contained in:
@@ -45,12 +45,9 @@ class LookupModule(LookupBase):
|
||||
if isinstance(terms, basestring):
|
||||
terms = [ terms ]
|
||||
|
||||
ret = []
|
||||
basedir = self.get_basedir(variables)
|
||||
|
||||
if 'role_path' in variables:
|
||||
basedir = variables['role_path']
|
||||
else:
|
||||
basedir = self._loader.get_basedir()
|
||||
ret = []
|
||||
|
||||
for term in terms:
|
||||
params = term.split()
|
||||
|
||||
Reference in New Issue
Block a user