Merge branch 'plugins-work' of https://github.com/ferringb/ansible into ferringb-plugins-work

pull/3876/merge
James Cammarata 11 years ago
commit e11bb0cad4

@ -176,7 +176,9 @@ class PluginLoader(object):
''' instantiates all plugins with the same arguments '''
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))
if name.startswith("_"):
continue

Loading…
Cancel
Save