mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
correctly adds searchpath as list
This commit is contained in:
parent
441fe44569
commit
0bd6f3a5e8
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ class LookupModule(LookupBase):
|
|||
|
||||
searchpath = [self._loader._basedir, os.path.dirname(lookupfile)]
|
||||
if 'role_path' in variables:
|
||||
searchpath.insert(1, C.DEFAULT_ROLES_PATH)
|
||||
if C.DEFAULT_ROLES_PATH:
|
||||
searchpath[:0] = C.DEFAULT_ROLES_PATH
|
||||
searchpath.insert(1, variables['role_path'])
|
||||
|
||||
self._templar.environment.loader.searchpath = searchpath
|
||||
|
|
Loading…
Reference in a new issue