Alerting: support ok state in alert migration (#45264) (#45266)

(cherry picked from commit c59567a236)

Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-02-10 22:12:47 +01:00
committed by GitHub
co-authored by Yuriy Tseretyan
parent c6e6309bc5
commit 76460e790d
@@ -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)
}