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

Plugin crashes Vagrant if nothing is configured #2

Merged
merged 2 commits into from
Jun 27, 2013
Merged

Conversation

tmatilai
Copy link
Owner

It seems that Vagrant does not call finalize! for the configuration object if there is no configuration for it in the Vagrantfile.

This seems like bug or unfortunate feature in Vagrant, bu we should anyway be prepared that the configuration keys can be left in UNSET_VALUE. A good idea might be to call `finalize ourself.

@tmatilai
Copy link
Owner Author

Reported also to hashicorp/vagrant#1877.

Vagrant does not call `finalize!` if the configuration key is not used
in Vagrantfiles:
  hashicorp/vagrant#1877

Fixes #2.
@tmatilai
Copy link
Owner Author

@patcon sure. I feel stupid that I didn't catch that before. We need some integration/acceptance tests.

tmatilai added a commit that referenced this pull request Jun 27, 2013
Plugin crashes Vagrant if nothing is configured
@tmatilai tmatilai merged commit ba01107 into master Jun 27, 2013
@tmatilai tmatilai deleted the finalize-config branch June 27, 2013 21:28
@fgrehm
Copy link

fgrehm commented Jun 27, 2013

@tmatilai I'm really interested on discussing integration / acceptance tests strategies for vagrant plugins as I've seem different approaches for doing that :)

@fgrehm
Copy link

fgrehm commented Jun 27, 2013

:%s/seem/seen/g

@tmatilai
Copy link
Owner Author

@fgrehm I'm all open for suggestions. =)
I've wanted to try out serverspec but that would still leave Vagrant instance management open.
I created #3 for further brain storming.

codylane added a commit that referenced this pull request Jul 19, 2019
bugfix: initial commit to address issues #172 and #189
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.

3 participants