Skip to content

Commit

Permalink
providers/supermicro/x12.go: noTasksRunning - Ignore Killed tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
splaspood committed Sep 18, 2024
1 parent 7b556a4 commit 1753318
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/supermicro/x12.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ func (c *x12) firmwareTaskActive(ctx context.Context, component string) error {

// noTasksRunning returns an error if a firmware related task was found active
func noTasksRunning(component string, t *redfish.Task) error {
if t.TaskState == "Killed" {
return nil
}

errTaskActive := errors.New("A firmware task was found active for component: " + component)

const (
Expand Down

0 comments on commit 1753318

Please sign in to comment.