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

Ignore error if box not found when updating #428

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

clintoncwolfe
Copy link
Contributor

When performing a vagrant box update --box BOXNAME, the CLI command will exit with code 1 if the named box does not already exist. In our use case, we can ignore that error and happily continue, since our later vagrant up command will download the box if missing.

I considered explicitly listing boxes rather than ignoring an error, but that would introduce a performance penalty to every run.

Issues Resolved

Fixes #425

Check List

  • All tests pass. See TESTING.md for details.
  • New functionality includes testing.
  • New functionality has been documented in the README if applicable.

@tas50 tas50 merged commit 9dfb818 into master Nov 10, 2020
@tas50 tas50 deleted the cw/ignore-error-on-first-box-update branch January 30, 2022 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

box_auto_update -- produces an error when no box exists already to check for an update against
2 participants