Re-added the (mistakenly removed) host override to the CommHost for the vmware builders.

This commit is contained in:
Ali Rizvi-Santiago 2020-06-05 12:39:12 -05:00
parent 9c5a65263f
commit 8985ba077c
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ func CommHost(config *SSHConfig) func(multistep.StateBag) (string, error) {
driver := state.Get("driver").(Driver) driver := state.Get("driver").(Driver)
comm := config.Comm comm := config.Comm
host := comm.Host()
if host != "" {
return host, nil
}
// Snag the port from the communicator config. This way we can use it // 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 // 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. // order to determine which one of the hosts is the correct one.