1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

when searching for a plugin only look for a regular file

This commit is contained in:
Stoned Elipot 2013-10-16 21:23:37 +02:00
parent 807e602228
commit 4430d0f5a6

View file

@ -151,7 +151,7 @@ class PluginLoader(object):
for i in self._get_paths(): for i in self._get_paths():
path = os.path.join(i, "%s%s" % (name, suffix)) path = os.path.join(i, "%s%s" % (name, suffix))
if os.path.exists(path): if os.path.isfile(path):
self._plugin_path_cache[name] = path self._plugin_path_cache[name] = path
return path return path