mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Don't replace the DEFAULT_SERVER_URL unless required
Trying to replace the string on newer versions of vagrant fails with a 'RuntimeError: can't modify frozen String' error. On newer versions of Vagrant, the server URL is correct already.
This commit is contained in:
committed by
Tim Abbott
parent
a3bb819e4c
commit
7929bf5c76
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -62,7 +62,9 @@ end
|
||||
# atlas.hashicorp.com, which means that removal broke the fetching and
|
||||
# updating of boxes (since the old URL doesn't work). See
|
||||
# https://github.com/hashicorp/vagrant/issues/9442
|
||||
Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
|
||||
if Vagrant::DEFAULT_SERVER_URL == "atlas.hashicorp.com"
|
||||
Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
|
||||
end
|
||||
|
||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
|
||||
|
Reference in New Issue
Block a user