Skip to content

Commit

Permalink
Fix test command output
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacvicar committed Jan 3, 2020
1 parent 072d47b commit db13b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libvirt/resource_libvirt_domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,8 @@ func createTempBlockDev(devname string) (string, string, error) {
}

// Find an available loop device
loopdevStr, err := exec.Command("/sbin/losetup", "--find").Output()
cmd = exec.Command("/sbin/losetup", "--find")
loopdevStr, err := cmd.Output()
fmt.Printf("Executing command: %s\n", strings.Join(cmd.Args, " "))
if err != nil {
return "", "", fmt.Errorf("Error searching for available loop device: %s", err)
Expand Down

0 comments on commit db13b67

Please sign in to comment.