Skip to content

Commit

Permalink
return unknown status if ipmimon fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Ermakov committed Dec 11, 2023
1 parent df8ee06 commit d63934b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func executeCheck(event *corev2.Event) (int, error) {

report, err := ipmimon.GetReport(ctx)
if err != nil {
return 0, err
return sensu.CheckStateUnknown, err
}

puReport := report.Type(ipmimon.TypePowerUnit)
Expand Down

0 comments on commit d63934b

Please sign in to comment.