diff --git a/plugins/providers/docker/action.rb b/plugins/providers/docker/action.rb index bb376fb3d..c3f8dfe01 100644 --- a/plugins/providers/docker/action.rb +++ b/plugins/providers/docker/action.rb @@ -156,12 +156,12 @@ module VagrantPlugins b3.use Call, DestroyConfirm do |env3, b4| if env3[:result] b4.use ConfigValidate + b4.use ProvisionerCleanup, :before b4.use EnvSet, force_halt: true b4.use action_halt b4.use HostMachineSyncFoldersDisable b4.use Destroy b4.use DestroyBuildImage - b4.use ProvisionerCleanup else b4.use Message, I18n.t("docker_provider.messages.will_not_destroy") diff --git a/plugins/providers/hyperv/action.rb b/plugins/providers/hyperv/action.rb index 64d4bc396..2d6433a22 100644 --- a/plugins/providers/hyperv/action.rb +++ b/plugins/providers/hyperv/action.rb @@ -38,6 +38,7 @@ module VagrantPlugins end b2.use ConfigValidate + b4.use ProvisionerCleanup, :before b2.use StopInstance b2.use DeleteVM end diff --git a/plugins/providers/virtualbox/action.rb b/plugins/providers/virtualbox/action.rb index 137e0ac92..7da0c06ae 100644 --- a/plugins/providers/virtualbox/action.rb +++ b/plugins/providers/virtualbox/action.rb @@ -95,13 +95,14 @@ module VagrantPlugins b2.use Call, DestroyConfirm do |env2, b3| if env2[:result] + b3.use ConfigValidate + b3.use ProvisionerCleanup, :before b3.use CheckAccessible b3.use EnvSet, force_halt: true b3.use action_halt b3.use Destroy b3.use CleanMachineFolder b3.use DestroyUnusedNetworkInterfaces - b3.use ProvisionerCleanup b3.use PrepareNFSValidIds b3.use SyncedFolderCleanup else