mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Merge pull request #4547 from stoned/find_plugin-fix
when searching for a plugin only look for a regular file
This commit is contained in:
commit
f9ac88c9da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue