From 35421800dd9b99af1067b3930ee6903ad27708f9 Mon Sep 17 00:00:00 2001 From: Ganesh Rathinavel Medayil <182092+ganeshrvel@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:21:19 +0530 Subject: [PATCH] Fixed a couple of incorrect string interpolations. (#1169) --- src/robusta/integrations/mattermost/client.py | 2 +- src/robusta/integrations/slack/sender.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robusta/integrations/mattermost/client.py b/src/robusta/integrations/mattermost/client.py index cb1112fe6..81fe103b6 100644 --- a/src/robusta/integrations/mattermost/client.py +++ b/src/robusta/integrations/mattermost/client.py @@ -110,7 +110,7 @@ def get_channel_id(self, channel_name: str) -> Optional[str]: if chan["name"] == channel_name: return chan["id"] else: - logging.error("Received error response from MM on channel search: {str(response)}") + logging.error(f"Received error response from MM on channel search: {str(response)}") def get_team_id(self, team_name: str) -> Optional[str]: if not self.is_admin: diff --git a/src/robusta/integrations/slack/sender.py b/src/robusta/integrations/slack/sender.py index 833db3f2e..48ecf2752 100644 --- a/src/robusta/integrations/slack/sender.py +++ b/src/robusta/integrations/slack/sender.py @@ -282,7 +282,7 @@ def __create_finding_header(self, finding: Finding, status: FindingStatus, platf sev = finding.severity if finding.source == FindingSource.PROMETHEUS: status_name: str = ( - "{status.to_emoji()} `Prometheus Alert Firing`" + f"{status.to_emoji()} `Prometheus Alert Firing`" if status == FindingStatus.FIRING else "*Prometheus resolved*" )