From 8d28227d3d736156427e7cfef9db5d2ddd0d98a1 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Mon, 6 May 2024 08:39:21 +0200 Subject: [PATCH] supermicro/x11: lower case device model before comparison This is a regression from a rework on the provider done earlier --- providers/supermicro/firmware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/supermicro/firmware.go b/providers/supermicro/firmware.go index 2deebd32..a13bda67 100644 --- a/providers/supermicro/firmware.go +++ b/providers/supermicro/firmware.go @@ -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)