From 1753318dc9dc9eb257023f194655ee08cffa7cea Mon Sep 17 00:00:00 2001 From: "James W. Brinkerhoff" Date: Wed, 18 Sep 2024 09:23:09 -0400 Subject: [PATCH] providers/supermicro/x12.go: noTasksRunning - Ignore Killed tasks --- providers/supermicro/x12.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/providers/supermicro/x12.go b/providers/supermicro/x12.go index 69197889..2e56886e 100644 --- a/providers/supermicro/x12.go +++ b/providers/supermicro/x12.go @@ -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 (