Commit 8ac86e49 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: improved logging for various workstation steps

parent 6ff00c43
...@@ -105,6 +105,10 @@ func (d *Workstation9Driver) Verify() error { ...@@ -105,6 +105,10 @@ func (d *Workstation9Driver) Verify() error {
} }
} }
log.Printf("VMware app path: %s", d.AppPath)
log.Printf("vmrun path: %s", d.VmrunPath)
log.Printf("vdisk-manager path: %s", d.VdiskManagerPath)
if _, err := os.Stat(d.AppPath); err != nil { if _, err := os.Stat(d.AppPath); err != nil {
return fmt.Errorf("VMware application not found: %s", d.AppPath) return fmt.Errorf("VMware application not found: %s", d.AppPath)
} }
......
...@@ -3,6 +3,7 @@ package vmware ...@@ -3,6 +3,7 @@ package vmware
import ( import (
"errors" "errors"
"io/ioutil" "io/ioutil"
"log"
"os" "os"
"regexp" "regexp"
"strings" "strings"
...@@ -28,7 +29,13 @@ type DHCPLeaseGuestLookup struct { ...@@ -28,7 +29,13 @@ type DHCPLeaseGuestLookup struct {
} }
func (f *DHCPLeaseGuestLookup) GuestIP() (string, error) { func (f *DHCPLeaseGuestLookup) GuestIP() (string, error) {
fh, err := os.Open(f.Driver.DhcpLeasesPath(f.Device)) dhcpLeasesPath := f.Driver.DhcpLeasesPath(f.Device)
log.Printf("DHCP leases path: %s", dhcpLeasesPath)
if dhcpLeasesPath == "" {
return "", errors.New("no DHCP leases path found.")
}
fh, err := os.Open(dhcpLeasesPath)
if err != nil { if err != nil {
return "", err return "", err
} }
......
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