Commit b317c763 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: add more logging to version detection

parent 62cfa998
...@@ -124,11 +124,13 @@ func (d *VBox42Driver) Version() (string, error) { ...@@ -124,11 +124,13 @@ func (d *VBox42Driver) Version() (string, error) {
return "", err return "", err
} }
log.Printf("VBoxManage --version output: %s", stdout.String())
versionRe := regexp.MustCompile("[^.0-9]") versionRe := regexp.MustCompile("[^.0-9]")
matches := versionRe.Split(stdout.String(), 2) matches := versionRe.Split(stdout.String(), 2)
if len(matches) == 0 { if len(matches) == 0 {
return "", fmt.Errorf("No version found: %s", stdout.String()) return "", fmt.Errorf("No version found: %s", stdout.String())
} }
log.Printf("VirtualBox version: %s", matches[0])
return matches[0], nil return matches[0], nil
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment