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

Fix Vagrantfile for 2.0.3+ #218

Merged
merged 2 commits into from
May 12, 2018
Merged

Fix Vagrantfile for 2.0.3+ #218

merged 2 commits into from
May 12, 2018

Conversation

ocdtrekkie
Copy link
Collaborator

With Vagrant 2.0.3 and up, the DEFAULT_SERVER_URL is frozen, so it cannot be changed. But earlier versions of Vagrant need this line to work. While we could mandate a minimum Vagrant version, this change would set the correct URL if it's wrong, and leave it alone if the Vagrant version is new enough not to need it.

Corrects this error:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: [removed]\Vagrantfile
Line number: 13
Message: RuntimeError: can't modify frozen String

In hashicorp/vagrant#9442 this fix was posted by @reedy, credit where credit is due.

With Vagrant 2.0.3 and up, the DEFAULT_SERVER_URL is frozen, so it cannot be changed. But earlier versions of Vagrant need this line to work. While we could mandate a minimum Vagrant version, this change would set the correct URL if it's wrong, and leave it alone if the Vagrant version is new enough not to need it.

In hashicorp/vagrant#9442 this fix was posted by @reedy, credit where credit is due.
@kentonv kentonv merged commit f2574d3 into sandstorm-io:master May 12, 2018
@ocdtrekkie ocdtrekkie deleted the patch-2 branch May 13, 2018 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants