mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
Loader invalid plugin nicer error (#52754)
* stop processing invalid plugins
This commit is contained in:
2
changelogs/fragments/skip_invalid_plugin.yml
Normal file
2
changelogs/fragments/skip_invalid_plugin.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- skip invalid plugin after warning in loader
|
||||
@@ -540,6 +540,7 @@ class PluginLoader:
|
||||
self._load_config_defs(basename, module, path)
|
||||
except Exception as e:
|
||||
display.warning("Skipping plugin (%s) as it seems to be invalid: %s" % (path, to_text(e)))
|
||||
continue
|
||||
self._module_cache[path] = module
|
||||
found_in_cache = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user