summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/__init__.py
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-08-04 11:32:08 -0400
committerBrian Coca <brian.coca+git@gmail.com>2016-08-04 11:32:08 -0400
commitb0786a1845366a5fb81a40f7a8fd42d556556f7a (patch)
tree5020818040bda46acdf158e96a48b248af6ea4f8 /lib/ansible/plugins/__init__.py
parent98c149859a1d45f4d3e28385b6725448a7c8a8ce (diff)
downloadansible-b0786a1845366a5fb81a40f7a8fd42d556556f7a.tar.gz
actually skip bad/broken module files found
Diffstat (limited to 'lib/ansible/plugins/__init__.py')
-rw-r--r--lib/ansible/plugins/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py
index 19b217319e..4daf277b71 100644
--- a/lib/ansible/plugins/__init__.py
+++ b/lib/ansible/plugins/__init__.py
@@ -371,6 +371,7 @@ class PluginLoader:
obj = getattr(self._module_cache[path], self.class_name)
except AttributeError as e:
display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_unicode(e)))
+ continue
if self.base_class:
# The import path is hardcoded and should be the right place,