From 4430d0f5a6d94d9809f70f1bf56593e523908bd0 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Wed, 16 Oct 2013 21:23:37 +0200 Subject: [PATCH] when searching for a plugin only look for a regular file --- 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 72c0eac9c6..1aeba16693 100644 --- a/lib/ansible/utils/plugins.py +++ b/lib/ansible/utils/plugins.py @@ -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