Ensure provisioner cleanup run early in destroy (#1235)

Move the provisioner cleanup to both run at the start of the destroy
sequence and ensure it performs the cleanup as part of the in chain.

Fixes: #839
This commit is contained in:
Darragh Bailey 2021-03-22 13:30:12 +00:00 committed by GitHub
parent 3d35c52372
commit 4d7c6fd636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,11 +186,11 @@ module VagrantPlugins
b2.use Call, DestroyConfirm do |env2, b3|
if env2[:result]
b3.use ProvisionerCleanup, :before
b3.use ClearForwardedPorts
b3.use PruneNFSExports
b3.use DestroyDomain
b3.use DestroyNetworks
b3.use ProvisionerCleanup
else
b3.use MessageWillNotDestroy
end