Skip to content

Should crash if configured collectors are missing #57

@paalbra

Description

@paalbra

If you have a configured collector, but the collector is missing, zac will just continue:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions