From 8985ba077c2865476f07619c80284d71e8eed34b Mon Sep 17 00:00:00 2001 From: Ali Rizvi-Santiago Date: Fri, 5 Jun 2020 12:39:12 -0500 Subject: [PATCH] Re-added the (mistakenly removed) host override to the CommHost for the vmware builders. --- builder/vmware/common/ssh.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builder/vmware/common/ssh.go b/builder/vmware/common/ssh.go index 6a473fb3a..31e1a7eab 100644 --- a/builder/vmware/common/ssh.go +++ b/builder/vmware/common/ssh.go @@ -14,6 +14,11 @@ func CommHost(config *SSHConfig) func(multistep.StateBag) (string, error) { driver := state.Get("driver").(Driver) comm := config.Comm + host := comm.Host() + if host != "" { + return host, nil + } + // Snag the port from the communicator config. This way we can use it // to perform a 3-way handshake with all of the hosts we suspect in // order to determine which one of the hosts is the correct one.