From 76460e790de80717d086e6cbc55b3487f14ddc07 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 10 Feb 2022 22:12:47 +0100 Subject: [PATCH] Alerting: support ok state in alert migration (#45264) (#45266) (cherry picked from commit c59567a2369fad11baf903752ca0a18a49e26b95) Co-authored-by: Yuriy Tseretyan --- pkg/services/sqlstore/migrations/ualert/alert_rule.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/sqlstore/migrations/ualert/alert_rule.go b/pkg/services/sqlstore/migrations/ualert/alert_rule.go index fcc53586392..57aeefeb2db 100644 --- a/pkg/services/sqlstore/migrations/ualert/alert_rule.go +++ b/pkg/services/sqlstore/migrations/ualert/alert_rule.go @@ -262,6 +262,8 @@ func transExecErr(s string) (string, error) { // Keep last state is translated to error as we now emit a // DatasourceError alert when the state is error return "Error", nil + case "ok": + return "OK", nil } return "", fmt.Errorf("unrecognized Execution Error setting %v", s) }