mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: support ok state in alert migration (#45264)
This commit is contained in:
parent
0276b029fc
commit
c59567a236
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user