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 end
def call(env) def call(env)
if env[:vm].vm.saved? if env[:vm].state == :saved
env[:ui].info I18n.t("vagrant.actions.vm.resume.resuming") env[:ui].info I18n.t("vagrant.actions.vm.resume.resuming")
env[:action_runner].run(Boot, env) env[:action_runner].run(Boot, env)
end end

View File

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