From 0b9589a0fabd0588dc133a5c00db638a88318d1b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 6 Mar 2013 14:27:40 -0800 Subject: [PATCH] Raise an exception if the provider is reporting SSH is not ready --- plugins/communicators/ssh/communicator.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index 2a7f93138..fbc22c05e 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -140,8 +140,10 @@ module VagrantPlugins end end - # XXX: We need to raise some exception if SSH is not ready + # Get the SSH info for the machine, raise an exception if the + # provider is saying that SSH is not ready. ssh_info = @machine.ssh_info + raise Vagrant::Errors::SSHNotReady if ssh_info.nil? # Build the options we'll use to initiate the connection via Net::SSH opts = {