fix(alerting): Alphabetically sort Matrix provider

This commit is contained in:
Kalissaac
2022-07-20 19:00:12 -04:00
committed by TwiN
parent 9d4a639f31
commit 755c8bb43a
4 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -274,6 +274,7 @@ func validateAlertingConfig(alertingConfig *alerting.Config, endpoints []*core.E
alert.TypeCustom,
alert.TypeDiscord,
alert.TypeEmail,
alert.TypeMatrix,
alert.TypeMattermost,
alert.TypeMessagebird,
alert.TypeOpsgenie,
@@ -282,7 +283,6 @@ func validateAlertingConfig(alertingConfig *alerting.Config, endpoints []*core.E
alert.TypeTeams,
alert.TypeTelegram,
alert.TypeTwilio,
alert.TypeMatrix,
}
var validProviders, invalidProviders []alert.Type
for _, alertType := range alertTypes {