mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update cache check in find_plugin
I am not familiar with the internals, but this line looked suspicious.
This commit is contained in:
parent
ef28d62846
commit
977b31249a
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class PluginLoader(object):
|
||||||
def find_plugin(self, name):
|
def find_plugin(self, name):
|
||||||
''' Find a plugin named name '''
|
''' Find a plugin named name '''
|
||||||
|
|
||||||
if 'name' in self._plugin_path_cache:
|
if name in self._plugin_path_cache:
|
||||||
return self._plugin_path_cache[name]
|
return self._plugin_path_cache[name]
|
||||||
|
|
||||||
suffix = ".py"
|
suffix = ".py"
|
||||||
|
|
Loading…
Reference in a new issue