From b3dc6ba7d0c4c109dfaaaa640f40850a56c3cfc7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 28 Aug 2011 20:41:51 -0700 Subject: [PATCH] Check for VM accessibility in ssh_config --- lib/vagrant/command/ssh_config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/command/ssh_config.rb b/lib/vagrant/command/ssh_config.rb index d16818f0f..b79a6e3f7 100644 --- a/lib/vagrant/command/ssh_config.rb +++ b/lib/vagrant/command/ssh_config.rb @@ -8,6 +8,7 @@ module Vagrant raise Errors::MultiVMTargetRequired, :command => "ssh_config" if target_vms.length > 1 vm = target_vms.first raise Errors::VMNotCreatedError if !vm.created? + raise Errors::VMInaccessible if !vm.vm.accessible? # We need to fix the file permissions of the key if they aren't set # properly, otherwise if the user attempts to SSH in, it won't work!