Merge pull request #5051 from hashicorp/fixvncporttimeout
vnc port discovery timeout is 15 seconds
This commit is contained in:
commit
339980eadc
|
@ -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")
|
envTimeout := os.Getenv("PACKER_ESXI_VNC_PROBE_TIMEOUT")
|
||||||
if envTimeout != "" {
|
if envTimeout != "" {
|
||||||
if parsedTimeout, err := time.ParseDuration(envTimeout); err != nil {
|
if parsedTimeout, err := time.ParseDuration(envTimeout); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue