Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

vagrant destroy exits with 0 if confirmation is declined #923

Closed
skade opened this Issue · 3 comments

3 participants

@skade

vagrant destroy returns 0 if confirmation is declined. Nothing big, but its a bit strange:

$ vagrant destroy && vagrant up
Are you sure you want to destroy the 'base' VM? [Y/N] N
The VM 'base' will not be destroyed, since the confirmation
was declined.
[base] VM already created. Booting if it's not already running...
[base] Clearing any previously set forwarded ports...
@ithinkihaveacat

A related problem is that vagrant also exist with 0 if the command is not found--vagrant up will similarly execute if you do:

$ vagrant destroyp && vagrant
@ithinkihaveacat

(I've made a pull request (#1336) to fix the "invalid command" problem, not quite sure where to start with the "confirmation not given" problem.)

@mitchellh
Owner

Fixed!

@mitchellh mitchellh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.