From cbe7b415668eddb1804649a57079570981c9db83 Mon Sep 17 00:00:00 2001 From: Olivier FAURAX Date: Wed, 20 Sep 2023 11:42:45 +0200 Subject: [PATCH] Fix lint --- internal/outofband/action_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }