Skip to content

Commit

Permalink
fix(pd): another typo in PagerDuty
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Nov 12, 2024
1 parent c7ba625 commit 96a5c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keep/providers/pagerduty_provider/pagerduty_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def _format_alert(
# If somebody connected the provider before we refactored it
old_format_event = event.get("event", {})
if old_format_event is not None and isinstance(old_format_event, dict):
return PagerdutyProvider._format_alert_old(old_format_event)
return PagerdutyProvider._format_alert_old(event)

status = PagerdutyProvider.ALERT_STATUS_MAP.get(event.get("status", "firing"))
severity = PagerdutyProvider.ALERT_SEVERITIES_MAP.get(
Expand Down

0 comments on commit 96a5c2f

Please sign in to comment.