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

Unable to remove broken box #76

Closed khromov closed 8 years ago

khromov commented 8 years ago

This plugin badly needs a way to temporarily override it. For example, you can't even destroy a broken machine due to this script because it just aborts on SSH failed...

C:\Users\khromov\Documents\GitHub\VVV>vagrant destroy
==> default: Running triggers before destroy...
==> default: Executing command "vagrant ssh -c vagrant_destroy"...
==> default: VM must be running to open SSH connection. Run `vagrant up`
==> default: to start the virtual machine.
==> default: Command execution finished.
The local command "vagrant ssh -c 'vagrant_destroy'" returned a failed exit
code or an exception. The error output is shown below:
emyl commented 8 years ago

Hi,

You can skip trigger execution, here is the docs:

https://github.com/emyl/vagrant-triggers#skipping-execution

:wink: