diff --git a/lib/vagrant-aws/action.rb b/lib/vagrant-aws/action.rb index c140ac44..2b5c7cd0 100644 --- a/lib/vagrant-aws/action.rb +++ b/lib/vagrant-aws/action.rb @@ -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