Skip to content

Commit

Permalink
Add comment explaining the qemu-img command on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Oct 29, 2015
1 parent 347325d commit 1d06f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/driver/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ func NewQemuDriver(ctx *DriverContext) Driver {
func (d *QemuDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
bin := "qemu-system-x86_64"
if runtime.GOOS == "windows" {
// On windows, the "qemu-system-x86_64" command does not respond to the
// version flag.
bin = "qemu-img"
}
outBytes, err := exec.Command(bin, "--version").Output()
Expand Down

0 comments on commit 1d06f44

Please sign in to comment.