1
0
Fork 0
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:
Ustun Ozgur 2013-09-29 14:03:10 +03:00
parent ef28d62846
commit 977b31249a

View file

@ -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"