mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Merge pull request #3018 from dsedivec/devel
Plug-ins loaded from top-level plug-in directory
This commit is contained in:
commit
5fdca267ac
5 changed files with 46 additions and 3 deletions
|
@ -100,11 +100,10 @@ class PluginLoader(object):
|
|||
files = glob.glob("%s/*" % fullpath)
|
||||
for file in files:
|
||||
if os.path.isdir(file) and file not in ret:
|
||||
ret.append(file)
|
||||
else:
|
||||
ret.append(file)
|
||||
if fullpath not in ret:
|
||||
ret.append(fullpath)
|
||||
|
||||
|
||||
# look in any configured plugin paths, allow one level deep for subcategories
|
||||
configured_paths = self.config.split(os.pathsep)
|
||||
for path in configured_paths:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue