From f12f50c5520685f22401f25bc2084c1642623cbe Mon Sep 17 00:00:00 2001 From: Bob Date: Wed, 15 Jul 2015 19:41:10 +0200 Subject: [PATCH] Raise Errno::ETIMEDOUT as "acceptable" Errors::ConnectionTimeout --- plugins/communicators/winrm/shell.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/communicators/winrm/shell.rb b/plugins/communicators/winrm/shell.rb index d9d5f28ce..9b0f4e302 100644 --- a/plugins/communicators/winrm/shell.rb +++ b/plugins/communicators/winrm/shell.rb @@ -132,6 +132,9 @@ module VagrantPlugins raise Errors::SSLError, message: exception.message when HTTPClient::TimeoutError raise Errors::ConnectionTimeout, message: exception.message + when Errno::ETIMEDOUT + raise Errors::ConnectionTimeout + # This is raised if the connection timed out when Errno::ECONNREFUSED # This is raised if we failed to connect the max amount of times raise Errors::ConnectionRefused