retry the wait for a windows reboot on connect timeout errors
This commit is contained in:
parent
b3462d805b
commit
ba71c30e04
|
@ -28,7 +28,7 @@ module VagrantPlugins
|
||||||
wait_remaining = MAX_REBOOT_RETRY_DURATION
|
wait_remaining = MAX_REBOOT_RETRY_DURATION
|
||||||
begin
|
begin
|
||||||
wait_for_reboot(machine)
|
wait_for_reboot(machine)
|
||||||
rescue Vagrant::Errors::MachineGuestNotReady, WinRM::WinRMHTTPTransportError => e
|
rescue HTTPClient::ConnectTimeoutError, Vagrant::Errors::MachineGuestNotReady, WinRM::WinRMHTTPTransportError => e
|
||||||
raise if wait_remaining < 0
|
raise if wait_remaining < 0
|
||||||
@logger.warn("Machine not ready, cannot start reboot yet. Trying again")
|
@logger.warn("Machine not ready, cannot start reboot yet. Trying again")
|
||||||
sleep(5)
|
sleep(5)
|
||||||
|
|
Loading…
Reference in New Issue