Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #452 from larribas/cleanup-before-termination
Browse files Browse the repository at this point in the history
Execute provisioner cleanup before terminating the instance
  • Loading branch information
R. Tyler Croy committed Jul 3, 2016
2 parents 5374ee9 + a8bc885 commit 36ac514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vagrant-aws/action.rb
Expand Up @@ -50,10 +50,11 @@ def self.action_destroy
b3.use MessageNotCreated
next
end

b3.use ConnectAWS
b3.use ElbDeregisterInstance
b3.use ProvisionerCleanup, :before if defined?(ProvisionerCleanup)
b3.use TerminateInstance
b3.use ProvisionerCleanup if defined?(ProvisionerCleanup)
end
else
b2.use MessageWillNotDestroy
Expand Down

0 comments on commit 36ac514

Please sign in to comment.