From ce4db65fa0206caac6fb748322e269962f545de6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 31 Jul 2013 15:10:28 -0700 Subject: [PATCH] builder/vmware: compile host_ip on every platform --- builder/vmware/host_ip.go | 2 -- builder/vmware/host_ip_vmnetnatconf.go | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) 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")