Raise an exception if the provider is reporting SSH is not ready

This commit is contained in:
Mitchell Hashimoto 2013-03-06 14:27:40 -08:00
parent 412af5542d
commit 0b9589a0fa
1 changed files with 3 additions and 1 deletions

View File

@ -140,8 +140,10 @@ module VagrantPlugins
end end
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 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 # Build the options we'll use to initiate the connection via Net::SSH
opts = { opts = {