Skip to content

Commit

Permalink
fix(api): add bool to event_val filter (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Aug 6, 2024
1 parent e3aa840 commit b15fa74
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions keep/workflowmanager/workflowmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,7 @@ def insert_events(self, tenant_id, events: typing.List[AlertDto]):
break
should_run = False
# elif the filter is string/int/float, compare them:
elif type(event_val) in [
int,
str,
float,
]:
elif type(event_val) in [int, str, float, bool]:
if not self._apply_filter(filter_val, event_val):
self.logger.debug(
"Filter didn't match, skipping",
Expand Down

0 comments on commit b15fa74

Please sign in to comment.