Catch Errno::ETIMEDOUT for SSH

This commit is contained in:
Mitchell Hashimoto 2013-01-16 16:42:00 -08:00
parent 776a1e446b
commit c6c27c5e62
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ module VagrantPlugins
Net::SSH.start(ssh_info[:host], ssh_info[:username], opts) Net::SSH.start(ssh_info[:host], ssh_info[:username], opts)
end end
end end
rescue Timeout::Error rescue Errno::ETIMEDOUT, Timeout::Error
# This happens if we continued to timeout when attempting to connect. # This happens if we continued to timeout when attempting to connect.
raise Vagrant::Errors::SSHConnectionTimeout raise Vagrant::Errors::SSHConnectionTimeout
rescue Net::SSH::AuthenticationFailed rescue Net::SSH::AuthenticationFailed