Skip to content

Commit b20c644

Browse files
authored
fix: grafana description (#5164)
1 parent c5e23ca commit b20c644

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

keep/providers/grafana_provider/grafana_provider.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ def _format_alert(
321321
dashboard_url = alert.get("dashboardURL", None)
322322
panel_url = alert.get("panelURL", None)
323323

324-
# backward compatibility
325-
description = alert.get("annotations", {}).get("summary", "")
326-
if not description:
327-
description = alert.get("annotations", {}).get("description")
324+
description = alert.get("annotations", {}).get("description") or alert.get(
325+
"annotations", {}
326+
).get("summary", "")
328327

329328
valueString = alert.get("valueString")
330329

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "keep"
3-
version = "0.45.12"
3+
version = "0.45.13"
44
description = "Alerting. for developers, by developers."
55
authors = ["Keep Alerting LTD"]
66
packages = [{include = "keep"}]

0 commit comments

Comments
 (0)