From 820811675d8ea7b7e94391c90a163f9e2225fd44 Mon Sep 17 00:00:00 2001 From: Olivier Bilodeau Date: Fri, 13 Oct 2017 19:00:48 -0400 Subject: [PATCH] vmware-iso builder: Logging on network errors on connection refused --- builder/vmware/iso/driver_esx5.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/vmware/iso/driver_esx5.go b/builder/vmware/iso/driver_esx5.go index 86ddf015b..8da66f0d2 100644 --- a/builder/vmware/iso/driver_esx5.go +++ b/builder/vmware/iso/driver_esx5.go @@ -302,6 +302,9 @@ func (d *ESX5Driver) CommHost(state multistep.StateBag) (string, error) { if e.Timeout() { log.Printf("Timeout connecting to %s", record["IPAddress"]) continue + } else if strings.Contains(e.Error(), "connection refused") { + log.Printf("Connection refused when connecting to: %s", record["IPAddress"]) + continue } } } else {