Fix guest loading w/ VBoxManage

This commit is contained in:
Mitchell Hashimoto 2011-12-21 13:54:51 -08:00
parent 9cb0578c64
commit 8360bcf61b
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ module Vagrant
# Returns the guest for this VM, loading the distro of the system if
# we can.
def guest
if !@loaded_guest_distro && created? && vm.running?
if !@loaded_guest_distro && state == :running
# Load the guest distro for the first time
result = @guest.distro_dispatch
load_guest!(result)