Skip to content

Commit

Permalink
Alerting: support ok state in alert migration (grafana#45264)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-tceretian committed Feb 10, 2022
1 parent 0276b02 commit c59567a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/services/sqlstore/migrations/ualert/alert_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit c59567a

Please sign in to comment.