diff --git a/providers/asrockrack/firmware.go b/providers/asrockrack/firmware.go index 54421696..a0dbb2c0 100644 --- a/providers/asrockrack/firmware.go +++ b/providers/asrockrack/firmware.go @@ -68,6 +68,9 @@ func (a *ASRockRack) FirmwareInstallStatus(ctx context.Context, installVersion, func (a *ASRockRack) firmwareInstallBMC(ctx context.Context, reader io.Reader, fileSize int64) error { var err error + mybytes, err := io.ReadAll(reader) + fmt.Printf("ReadAll reader before FRU len:%d\n", len(mybytes)) + // 0. take the model so that we use a different endpoint on E3C256D4ID-NL device := common.NewDevice() device.Metadata = map[string]string{} @@ -76,7 +79,7 @@ func (a *ASRockRack) firmwareInstallBMC(ctx context.Context, reader io.Reader, f return errors.Wrap(err, "failed to get model in step 0/4") } - mybytes, err := io.ReadAll(reader) + mybytes, err = io.ReadAll(reader) fmt.Printf("ReadAll reader afterFRU len:%d\n", len(mybytes)) // 1. set the device to flash mode - prepares the flash