Fix suspend action to work again

This commit is contained in:
Mitchell Hashimoto 2011-12-10 14:15:18 -08:00
parent 2a7f0d8a85
commit 71c39126e5
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ module Vagrant
end end
def call(env) def call(env)
if env["vm"].vm.running? if env[:vm].vm.running?
env.ui.info I18n.t("vagrant.actions.vm.suspend.suspending") env[:ui].info I18n.t("vagrant.actions.vm.suspend.suspending")
env["vm"].vm.save_state env[:vm].vm.save_state
end end
@app.call(env) @app.call(env)