From 5e5e0f69dc07cf1eadfa5d4a346ceafb13cae5d8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 22 Dec 2011 13:48:22 -0800 Subject: [PATCH] `vagrant ssh` works again --- lib/vagrant/command/ssh.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/command/ssh.rb b/lib/vagrant/command/ssh.rb index 03f8b811a..e21166ecd 100644 --- a/lib/vagrant/command/ssh.rb +++ b/lib/vagrant/command/ssh.rb @@ -26,8 +26,8 @@ module Vagrant with_target_vms(argv[0]) do |vm| # Basic checks that are required for proper SSH raise Errors::VMNotCreatedError if !vm.created? - raise Errors::VMInaccessible if !vm.vm.accessible? - raise Errors::VMNotRunningError if !vm.vm.running? + raise Errors::VMInaccessible if !vm.state == :inaccessible + raise Errors::VMNotRunningError if vm.state != :running if options[:command] ssh_execute(vm, options[:command])