Skip to content

Commit

Permalink
Merge pull request #284 from cphvmware/staged
Browse files Browse the repository at this point in the history
Convert output byte slice to string in InitializeDisk.
  • Loading branch information
k8s-ci-robot authored Dec 1, 2022
2 parents 85c945a + ee6190d commit 4f8b909
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 4f8b909

Please sign in to comment.