Increase the re-tries amount

This commit is contained in:
Hugo Fonseca 2016-11-07 15:34:48 +00:00 committed by GitHub
parent a68a1de21f
commit 2d63603d85

View file

@ -21,7 +21,7 @@ module Vagrant
def assigned_ip(env)
driver = env[:machine].provider.driver
ip = ''
retryable(:on => LXC::Errors::ExecuteError, :tries => 10, :sleep => 3) do
retryable(:on => LXC::Errors::ExecuteError, :tries => 20, :sleep => 3) do
unless ip = get_container_ip_from_ip_addr(driver)
# retry
raise LXC::Errors::ExecuteError, :command => "lxc-attach"