From cf1768c7bec4b96eecc8d463945d3f5300bc10f5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 20 Jul 2013 00:27:25 -0400 Subject: [PATCH] Retry SSH on ENETUNREACH [GH-1732] --- CHANGELOG.md | 1 + plugins/communicators/ssh/communicator.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 924af50ab..c70fb8ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ BUG FIXES: - Shared folder target path can be a Windows path. [GH-1688] - Forwarded ports don't auto-correct by default, and will raise an error properly if they collide. [GH-1701] + - Retry SSH on ENETUNREACH error. [GH-1732] ## 1.2.4 (July 16, 2013) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index d3af66499..8ca9f1b0f 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -186,6 +186,7 @@ module VagrantPlugins Errno::EADDRINUSE, Errno::ECONNREFUSED, Errno::ECONNRESET, + Errno::ENETUNREACH, Errno::EHOSTUNREACH, Net::SSH::Disconnect, Timeout::Error