From b0786a1845366a5fb81a40f7a8fd42d556556f7a Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 4 Aug 2016 11:32:08 -0400 Subject: [PATCH] actually skip bad/broken module files found --- lib/ansible/plugins/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py index 19b217319ec..4daf277b715 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,