mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'plugins-work' of https://github.com/ferringb/ansible into ferringb-plugins-work
This commit is contained in:
commit
e11bb0cad4
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@ class PluginLoader(object):
|
||||||
''' instantiates all plugins with the same arguments '''
|
''' instantiates all plugins with the same arguments '''
|
||||||
|
|
||||||
for i in self._get_paths():
|
for i in self._get_paths():
|
||||||
for path in glob.glob(os.path.join(i, "*.py")):
|
matches = glob.glob(os.path.join(i, "*.py"))
|
||||||
|
matches.sort()
|
||||||
|
for path in matches:
|
||||||
name, ext = os.path.splitext(os.path.basename(path))
|
name, ext = os.path.splitext(os.path.basename(path))
|
||||||
if name.startswith("_"):
|
if name.startswith("_"):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue