Merge pull request #5051 from hashicorp/fixvncporttimeout

vnc port discovery timeout is 15 seconds
This commit is contained in:
Matthew Hooker 2017-06-22 18:06:06 -07:00 committed by GitHub
commit 339980eadc
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ func (d *ESX5Driver) VNCAddress(_ string, portMin, portMax uint) (string, uint,
}
}
vncTimeout := time.Duration(15)
vncTimeout := time.Duration(15 * time.Second)
envTimeout := os.Getenv("PACKER_ESXI_VNC_PROBE_TIMEOUT")
if envTimeout != "" {
if parsedTimeout, err := time.ParseDuration(envTimeout); err != nil {