-
Notifications
You must be signed in to change notification settings - Fork 5
Should crash if configured collectors are missing #57
Copy link
Copy link
Open
Description
If you have a configured collector, but the collector is missing, zac will just continue:
zabbix-auto-config/zabbix_auto_config/__init__.py
Lines 29 to 33 in 2b45f1c
| try: | |
| module = importlib.import_module(source_collector_values.module_name) | |
| except ModuleNotFoundError: | |
| logging.error("Unable to find source collector named '%s' in '%s'", source_collector_values.module_name, source_collector_dir) | |
| continue |
This might lead to unexpected behavior and bad results. It's probably better to raise a ZACException and crash? Thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels