mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
fixes to ansible_search_path
now gets basedir (no need to frontload as dwim already does that) added comment about basedir to search_path usage to avoid dupes
This commit is contained in:
parent
7d9d009189
commit
9bdde13126
2 changed files with 10 additions and 3 deletions
|
@ -817,6 +817,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
to get back the first existing file found.
|
||||
'''
|
||||
|
||||
# dwim already deals with playbook basedirs
|
||||
path_stack = self._task.get_search_path()
|
||||
|
||||
result = self._loader.path_dwim_relative_stack(path_stack, dirname, needle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue