diff --git a/CHANGELOG.md b/CHANGELOG.md index fbc80b9c..d28cedbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Address bug when a Shift Swap Request is accepted either via the web or mobile UI, and the Slack message is not updated to reflect the latest state by @joeyorlando ([#2886](https://github.com/grafana/oncall/pull/2886)) +- Fix issue where Grafana integration would fail to parse alerting config for routes without receivers @mderynck + ([#2894](https://github.com/grafana/oncall/pull/2894)) ## v1.3.27 (2023-08-25) diff --git a/engine/apps/alerts/grafana_alerting_sync_manager/grafana_alerting_sync.py b/engine/apps/alerts/grafana_alerting_sync_manager/grafana_alerting_sync.py index 70658b2a..b0ed1558 100644 --- a/engine/apps/alerts/grafana_alerting_sync_manager/grafana_alerting_sync.py +++ b/engine/apps/alerts/grafana_alerting_sync_manager/grafana_alerting_sync.py @@ -374,7 +374,7 @@ class GrafanaAlertingSyncManager: return True routes = route_config.get("routes", []) for route in routes: - if route["receiver"] == receiver_name: + if route.get("receiver") == receiver_name: return True if route.get("routes"): if self._recursive_check_contact_point_is_in_routes(route, receiver_name):