From c6c27c5e62cbd7363e22ddce4693e650216baba4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 16 Jan 2013 16:42:00 -0800 Subject: [PATCH] Catch Errno::ETIMEDOUT for SSH --- plugins/communicators/ssh/communicator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index a38d8e0ce..f91aa55e8 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -168,7 +168,7 @@ module VagrantPlugins Net::SSH.start(ssh_info[:host], ssh_info[:username], opts) end end - rescue Timeout::Error + rescue Errno::ETIMEDOUT, Timeout::Error # This happens if we continued to timeout when attempting to connect. raise Vagrant::Errors::SSHConnectionTimeout rescue Net::SSH::AuthenticationFailed