diff --git a/internal/outofband/action_handlers.go b/internal/outofband/action_handlers.go index 993177ff..5054b9f7 100644 --- a/internal/outofband/action_handlers.go +++ b/internal/outofband/action_handlers.go @@ -421,7 +421,7 @@ func (h *actionHandler) pollFirmwareInstallStatus(a sw.StateSwitch, c sw.Transit }).Debug("firmware install status query attempt") // if BMC has been update and rebooted, no task status is available - if action.Firmware.Component == "bmc" && err == ErrTaskNotFound { + if action.Firmware.Component == "bmc" && errors.Is(err, ErrTaskNotFound) { return nil }