Skip to content

Commit 1753318

Browse files
author
James W. Brinkerhoff
committed
providers/supermicro/x12.go: noTasksRunning - Ignore Killed tasks
1 parent 7b556a4 commit 1753318

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

providers/supermicro/x12.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ func (c *x12) firmwareTaskActive(ctx context.Context, component string) error {
142142

143143
// noTasksRunning returns an error if a firmware related task was found active
144144
func noTasksRunning(component string, t *redfish.Task) error {
145+
if t.TaskState == "Killed" {
146+
return nil
147+
}
148+
145149
errTaskActive := errors.New("A firmware task was found active for component: " + component)
146150

147151
const (

0 commit comments

Comments
 (0)