builder/virtualbox: add more logging to version detection

pull/919/head
Mitchell Hashimoto 13 years ago
parent 62cfa9983d
commit b317c763ac

@ -124,11 +124,13 @@ func (d *VBox42Driver) Version() (string, error) {
return "", err
}
log.Printf("VBoxManage --version output: %s", stdout.String())
versionRe := regexp.MustCompile("[^.0-9]")
matches := versionRe.Split(stdout.String(), 2)
if len(matches) == 0 {
return "", fmt.Errorf("No version found: %s", stdout.String())
}
log.Printf("VirtualBox version: %s", matches[0])
return matches[0], nil
}

Loading…
Cancel
Save