mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
when searching for a plugin only look for a regular file
This commit is contained in:
@@ -151,7 +151,7 @@ class PluginLoader(object):
|
||||
|
||||
for i in self._get_paths():
|
||||
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
|
||||
return path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user