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

This commit is contained in:
Yuriy Tseretyan 2022-02-10 15:57:43 -05:00 committed by GitHub
parent 0276b029fc
commit c59567a236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}