mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Loader invalid plugin nicer error (#52754)
* stop processing invalid plugins
This commit is contained in:
parent
d8a2d64ec1
commit
514b974182
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue