diff --git a/providers/redfish/tasks.go b/providers/redfish/tasks.go index 49bd1713..5a40f47e 100644 --- a/providers/redfish/tasks.go +++ b/providers/redfish/tasks.go @@ -128,6 +128,9 @@ func (c *Conn) GetTask(taskID string) (task *gofishrf.Task, err error) { if err != nil { return nil, err } + if resp.StatusCode == 404 { + return nil, errors.Wrap(bmclibErrs.ErrTaskNotFound, "task with ID not found: "+taskID) + } if resp.StatusCode != 200 { err = errors.Wrap( bmclibErrs.ErrFirmwareInstallStatus,