Skip to content

Commit

Permalink
Convert output byte slice to string in InitializeDisk.
Browse files Browse the repository at this point in the history
  • Loading branch information
cphvmware committed Nov 17, 2022
1 parent 85c945a commit ee6190d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/os/disk/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (DiskAPI) InitializeDisk(diskNumber uint32) error {
cmd := fmt.Sprintf("Initialize-Disk -Number %d -PartitionStyle GPT", diskNumber)
out, err := utils.RunPowershellCmd(cmd)
if err != nil {
return fmt.Errorf("error initializing disk %d: %v, %v", diskNumber, out, err)
return fmt.Errorf("error initializing disk %d: %v, %v", diskNumber, string(out), err)
}
return nil
}
Expand Down

0 comments on commit ee6190d

Please sign in to comment.