Merge pull request #595 from toro-ponz/fix/slack-format-alert-failure

Fix failure of "Format Alert" button on Slack.
This commit is contained in:
Ildar Iskhakov 2022-10-04 17:05:39 +08:00 committed by GitHub
commit 5187dbf913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ class OpenAlertAppearanceDialogStep(
# This is a special case for amazon sns notifications in str format CHEKED
if (
AlertReceiveChannel.INTEGRATION_AMAZON_SNS is not None
hasattr(AlertReceiveChannel, "INTEGRATION_AMAZON_SNS")
and alert_group.channel.integration == AlertReceiveChannel.INTEGRATION_AMAZON_SNS
and raw_request_data == "{}"
):