From 42f46a95d6e5e42ff9a5adad99e67c6406e61ae1 Mon Sep 17 00:00:00 2001 From: Robusta Runner Date: Mon, 7 Apr 2025 16:11:47 +0300 Subject: [PATCH] Update opsgenie_sink.py --- src/robusta/core/sinks/opsgenie/opsgenie_sink.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/robusta/core/sinks/opsgenie/opsgenie_sink.py b/src/robusta/core/sinks/opsgenie/opsgenie_sink.py index 7b162ba38..a2ed4f002 100644 --- a/src/robusta/core/sinks/opsgenie/opsgenie_sink.py +++ b/src/robusta/core/sinks/opsgenie/opsgenie_sink.py @@ -76,7 +76,8 @@ def __ack_alert(self, fingerprint: str, user: str, note: str): def __open_alert(self, finding: Finding, platform_enabled: bool): description = self.__to_description(finding, platform_enabled) details = self.__to_details(finding) - self.tags.insert(0, self.cluster_name) + tags = self.tags.copy() + tags.insert(0, self.cluster_name) body = opsgenie_sdk.CreateAlertPayload( source="Robusta", message=finding.title, @@ -84,7 +85,7 @@ def __open_alert(self, finding: Finding, platform_enabled: bool): alias=finding.fingerprint, responders=[{"name": team, "type": "team"} for team in self.teams], details=details, - tags=self.tags, + tags=tags, entity=finding.service_key, priority=PRIORITY_MAP.get(finding.severity, "P3"), )