Use the proper env for branching on Halt in VirtualBox
This commit is contained in:
parent
030fd30dad
commit
4780f1c07f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue