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
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)