Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant destroy exits with 0 if confirmation is declined #923

Closed
skade opened this issue May 9, 2012 · 3 comments
Closed

vagrant destroy exits with 0 if confirmation is declined #923

skade opened this issue May 9, 2012 · 3 comments

Comments

@skade
Copy link

skade commented May 9, 2012

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
Copy link
Contributor

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
Copy link
Contributor

(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
Copy link
Contributor

Fixed!

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants