diff --git a/builder/vmware/host_ip.go b/builder/vmware/host_ip.go index 3da687f15..452cca7dc 100644 --- a/builder/vmware/host_ip.go +++ b/builder/vmware/host_ip.go @@ -1,5 +1,3 @@ -// +build darwin freebsd linux netbsd openbsd - package vmware // Interface to help find the host IP that is available from within diff --git a/builder/vmware/host_ip_vmnetnatconf.go b/builder/vmware/host_ip_vmnetnatconf.go index 3fd055e44..bc1289e3d 100644 --- a/builder/vmware/host_ip_vmnetnatconf.go +++ b/builder/vmware/host_ip_vmnetnatconf.go @@ -57,7 +57,9 @@ func (*VMnetNatConfIPFinder) HostIP() (string, error) { break } - return "", err + if err != nil { + return "", err + } } return "", errors.New("host IP not found in NAT config")