Skip to content

Commit

Permalink
Test file type
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 10, 2023
1 parent 7ae9327 commit bd7e992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/asrockrack/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func (a *ASRockRack) FirmwareInstall(ctx context.Context, component, applyAt str
fmt.Printf("ReadAll reader top firmware install len:%d\n", len(mybytes))

if file, ok := reader.(*os.File); ok {
fmt.Printf("Type file OK\n")
finfo, err := file.Stat()
if err != nil {
a.log.V(2).Error(err, "unable to determine file size")
Expand Down

0 comments on commit bd7e992

Please sign in to comment.