Skip to content

Commit

Permalink
trace in firmwareInstallBMC
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 10, 2023
1 parent 01a29b0 commit a89b2a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/asrockrack/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package asrockrack

import (
"context"
"fmt"
"io"
"os"
"strings"
Expand Down Expand Up @@ -67,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)

Check failure on line 71 in providers/asrockrack/firmware.go

View workflow job for this annotation

GitHub Actions / lint

ineffectual assignment to err (ineffassign)
fmt.Printf("ReadAll reader 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{}
Expand Down

0 comments on commit a89b2a7

Please sign in to comment.