Skip to content

Commit

Permalink
Merge pull request #391 from bmc-toolbox/smc-x11
Browse files Browse the repository at this point in the history
supermicro/x11: lower case device model before comparison
  • Loading branch information
joelrebel authored May 6, 2024
2 parents 877feee + 8d28227 commit dff3a92
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 dff3a92

Please sign in to comment.