Skip to content

Commit

Permalink
fix: minor fix in gcp monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Nov 18, 2024
1 parent 33bce46 commit 27eb9c4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ def _format_alert(
url = incident.pop("url", "")
documentation = incident.pop("documentation", {})
if isinstance(documentation, dict):
name = documentation.get("subject", description)
name = (
documentation.get("subject", description)
or "GCPMontirong Alert (No subject)"
)
else:
name = "Test notification"
incident_id = incident.get("incident_id", "")
Expand Down

0 comments on commit 27eb9c4

Please sign in to comment.