From e3f047347b61c8826b4f8b1678eca49c34b61cc2 Mon Sep 17 00:00:00 2001 From: erda-bot <81558540+erda-bot@users.noreply.github.com> Date: Fri, 26 Nov 2021 20:06:15 +0800 Subject: [PATCH] delete short_message (#3195) (#3201) Co-authored-by: panjiayao <44628544+Counterflowwind@users.noreply.github.com> --- modules/core/monitor/alert/alert-apis/adapt/expression.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/monitor/alert/alert-apis/adapt/expression.go b/modules/core/monitor/alert/alert-apis/adapt/expression.go index 061d5e1f652..8f07df7e06c 100644 --- a/modules/core/monitor/alert/alert-apis/adapt/expression.go +++ b/modules/core/monitor/alert/alert-apis/adapt/expression.go @@ -206,6 +206,7 @@ func (a *Adapt) NotifyTargetsKeys(code i18n.LanguageCodes, config map[string]boo for item := range config { if item == shortMessage { keys = append(keys, &pb.DisplayKey{Key: SMS, Display: a.t.Text(code, SMS)}) + continue } keys = append(keys, &pb.DisplayKey{Key: item, Display: a.t.Text(code, item)}) }