mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Merge pull request #3684 from stoned/fix-3668
Add extra module path early during playbook parsing.
This commit is contained in:
@@ -132,7 +132,8 @@ class PluginLoader(object):
|
||||
if directory is not None:
|
||||
if with_subdir:
|
||||
directory = os.path.join(directory, self.subdir)
|
||||
self._extra_dirs.append(directory)
|
||||
if directory not in self._extra_dirs:
|
||||
self._extra_dirs.append(directory)
|
||||
|
||||
def find_plugin(self, name):
|
||||
''' Find a plugin named name '''
|
||||
|
||||
Reference in New Issue
Block a user