Resuming works better

This commit is contained in:
Mitchell Hashimoto 2011-12-21 14:15:03 -08:00
parent a6e5078e4b
commit d5981978a1
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module Vagrant
end
def call(env)
if env[:vm].vm.saved?
if env[:vm].state == :saved
env[:ui].info I18n.t("vagrant.actions.vm.resume.resuming")
env[:action_runner].run(Boot, env)
end

View File

@ -127,7 +127,7 @@ module Vagrant
def start(options=nil)
return if state == :running
return resume if @vm.saved?
return resume if state == :saved
run_action(:start, options)
end