Use the proper env for branching on Halt in VirtualBox

This commit is contained in:
Mitchell Hashimoto 2013-01-22 13:35:52 -08:00
parent 030fd30dad
commit 4780f1c07f
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ module VagrantPlugins
b2.use CheckAccessible
b2.use DiscardState
b2.use Call, GracefulHalt, :poweroff, :running do |env2, b3|
if !env[:result]
if !env2[:result]
b3.use ForcedHalt
end
end