mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-10 02:09:11 -07:00
Add extra module path early during playbook parsing.
This should fix issue #3668 Also prevent an extra module path to be added multiple times.
This commit is contained in:
parent
ed55ac1a15
commit
841093921b
2 changed files with 5 additions and 1 deletions
|
@ -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 '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue