From 8c0169b1c4f60476d90287078bc9f32759c7b59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Gro=C3=9Fberger?= Date: Wed, 25 Mar 2015 14:45:15 +0100 Subject: [PATCH] Make the Vmware build extract the host IP properly from ifconfig stdout --- builder/vmware/common/host_ip_ifconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/common/host_ip_ifconfig.go b/builder/vmware/common/host_ip_ifconfig.go index 2a985aada..10f527c99 100644 --- a/builder/vmware/common/host_ip_ifconfig.go +++ b/builder/vmware/common/host_ip_ifconfig.go @@ -44,7 +44,7 @@ func (f *IfconfigIPFinder) HostIP() (string, error) { return "", err } - re := regexp.MustCompile(`inet\s*(?:addr:)?(.+?)\s`) + re := regexp.MustCompile(`inet[^\d]+([\d\.]+)\s`) matches := re.FindStringSubmatch(stdout.String()) if matches == nil { return "", errors.New("IP not found in ifconfig output...")