Skip to content

Commit

Permalink
supermicro/x11: lower case device model before comparison
Browse files Browse the repository at this point in the history
This is a regression from a rework on the provider done earlier
  • Loading branch information
joelrebel committed May 6, 2024
1 parent 877feee commit 8d28227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/supermicro/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func (c *Client) FirmwareInstallUploaded(ctx context.Context, component, uploadT
}

// x11's don't return a upload Task ID, since the upload mechanism is not redfish
if !strings.HasPrefix(c.bmc.deviceModel(), "x11") && uploadTaskID == "" {
return "", errUploadTaskIDExpected
if !strings.HasPrefix(strings.ToLower(c.bmc.deviceModel()), "x11") && uploadTaskID == "" {
return "", errors.Wrap(errUploadTaskIDExpected, "device model: "+c.bmc.deviceModel())
}

return c.bmc.firmwareInstallUploaded(ctx, component, uploadTaskID)
Expand Down

0 comments on commit 8d28227

Please sign in to comment.