vnc port discovery timeout is 15 seconds

This commit is contained in:
Matthew Hooker 2017-06-22 17:58:18 -07:00
parent 5921d50588
commit d35eeecf46
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
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 {