Skip to content

Commit

Permalink
fix: copy/paste error with AlertStatus enum usage
Browse files Browse the repository at this point in the history
  • Loading branch information
imorph committed Oct 22, 2024
1 parent e84664e commit 3843b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keep/providers/netdata_provider/netdata_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ def _format_alert(
),
status=(
NetdataProvider.STATUS_MAP.get(
event["status"]["text"], AlertStatus.INFO
event["status"]["text"], AlertStatus.FIRING
)
if "status" in event
else AlertStatus.INFO
else AlertStatus.FIRING
),
alert=event["alert"] if "alert" in event else None,
url=(
Expand Down

0 comments on commit 3843b61

Please sign in to comment.