mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
corrected precedence, added comments to each entry
This commit is contained in:
parent
f86ce0975d
commit
8e0b89bdbf
1 changed files with 6 additions and 2 deletions
|
@ -304,11 +304,15 @@ class DataLoader:
|
|||
search.append(unfrackpath(os.path.join(basedir, 'tasks', source), follow=False))
|
||||
|
||||
# try to create absolute path for loader basedir + templates/files/vars + filename
|
||||
search.append(unfrackpath(os.path.join(basedir, source), follow=False))
|
||||
search.append(unfrackpath(os.path.join(dirname, source), follow=False))
|
||||
|
||||
# try to create absolute path for loader basedir
|
||||
search.append(unfrackpath(os.path.join(basedir, source), follow=False))
|
||||
|
||||
# try to create absolute path for dirname + filename
|
||||
search.append(self.path_dwim(os.path.join(dirname, source)))
|
||||
|
||||
# try to create absolute path for loader basedir + filename
|
||||
# try to create absolute path for filename
|
||||
search.append(self.path_dwim(source))
|
||||
|
||||
for candidate in search:
|
||||
|
|
Loading…
Reference in a new issue