Resuming works better
This commit is contained in:
parent
a6e5078e4b
commit
d5981978a1
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue