mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
3d35c52372
commit
4d7c6fd636
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user