Commit 1da17fca authored by Fabio Manganiello's avatar Fabio Manganiello
Browse files

Print invalid rules to help debug broken configurations

parent 35cb72f5
Pipeline #255 passed with stages
in 5 minutes and 13 seconds
......@@ -63,7 +63,7 @@ class EventCondition(object):
rule = parse(rule)
assert isinstance(rule, dict)
assert isinstance(rule, dict), f'Not a valid rule: {rule}'
type = get_event_class_by_type(
rule.pop('type') if 'type' in rule else 'Event')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment