diff --git a/lib/ansible/utils/plugins.py b/lib/ansible/utils/plugins.py index 7e87fcba5d..c36e5434ae 100644 --- a/lib/ansible/utils/plugins.py +++ b/lib/ansible/utils/plugins.py @@ -108,11 +108,11 @@ class PluginLoader(object): # look in any configured plugin paths, allow one level deep for subcategories configured_paths = self.config.split(os.pathsep) for path in configured_paths: - ret.append(path) contents = glob.glob("%s/*" % path) for c in contents: if os.path.isdir(c): ret.append(c) + ret.append(path) # look for any plugins installed in the package subtree ret.extend(self._get_package_paths())