Fix suspend action to work again
This commit is contained in:
parent
2a7f0d8a85
commit
71c39126e5
|
@ -7,9 +7,9 @@ module Vagrant
|
|||
end
|
||||
|
||||
def call(env)
|
||||
if env["vm"].vm.running?
|
||||
env.ui.info I18n.t("vagrant.actions.vm.suspend.suspending")
|
||||
env["vm"].vm.save_state
|
||||
if env[:vm].vm.running?
|
||||
env[:ui].info I18n.t("vagrant.actions.vm.suspend.suspending")
|
||||
env[:vm].vm.save_state
|
||||
end
|
||||
|
||||
@app.call(env)
|
||||
|
|
Loading…
Reference in New Issue