vagrant/plugins/providers/virtualbox
Paul Hinze eacb798a71
Fix action hooks running twice in destroy_on_error scenarios
The "destroy_on_error" functionality for `vagrant up` is implemented in
the `recover()` action chain, and works by firing off a destroy action
from inside that chain.

This is all well and good, but it copies its existing `env` which has
had `action_name` set for the up action. This was causing action_hooks
for up actions to attach to this destroy action stack.

Setting the action_name explicitly in the env before firing the runner
should correct the behavior. I'm not sure if raw_action_name is used
anywhere but I figured it was better to be consistent vs conservative in
what we change.
2022-04-25 12:26:56 -05:00
..
action Fix action hooks running twice in destroy_on_error scenarios 2022-04-25 12:26:56 -05:00
cap Extract os friendly mount name for vbox shared folders 2021-02-10 15:25:56 -06:00
driver Ensure extra_disk_data is skipped if nil 2020-07-24 15:50:23 -07:00
model Avoid sorting of controllers with nil boot_priority 2020-09-01 09:57:55 -07:00
util Fix for #4608 2016-02-14 22:16:24 +11:00
action.rb Raise more descriptive error if cloud init fails 2020-08-06 15:47:36 -05:00
cap.rb Ensure non-existent machines do not attempt to list snapshots 2019-04-09 13:11:19 -07:00
config.rb Update default_nic_type implementation within VirtualBox provider 2018-11-26 15:58:45 -08:00
plugin.rb Extract os friendly mount name for vbox shared folders 2021-02-10 15:25:56 -06:00
provider.rb Clean up debugging cruft 2022-04-25 12:24:09 -05:00
synced_folder.rb Add mapper for a Class to String 2022-04-25 12:26:12 -05:00