From 977b31249ac23177466c60d63d770d54aae89485 Mon Sep 17 00:00:00 2001 From: Ustun Ozgur Date: Sun, 29 Sep 2013 14:03:10 +0300 Subject: [PATCH] Update cache check in find_plugin I am not familiar with the internals, but this line looked suspicious. --- lib/ansible/utils/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/plugins.py b/lib/ansible/utils/plugins.py index 74432c147e3..72c0eac9c62 100644 --- a/lib/ansible/utils/plugins.py +++ b/lib/ansible/utils/plugins.py @@ -142,7 +142,7 @@ class PluginLoader(object): def find_plugin(self, 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] suffix = ".py"