emyl / vagrant-triggers

Allow the definition of arbitrary scripts that will run on the host before and/or after Vagrant commands.
MIT License
546 stars 35 forks source link

Destroy trigger fired before confirmation #40

Closed mmrose closed 6 years ago

mmrose commented 9 years ago

I defined a destroy trigger like this:

    config.trigger.before :destroy, :stdout => true, :stderr => true do
        run_remote "/vagrant/cleanup.sh"
    end

This leads to cleanup.sh being called right before confirmation.

Do you see any way to get the trigger called only if confirmation is given or --force is used?

albrin commented 7 years ago

How do I understand this bug is not resolved?