Do not convert value to allow nil value to pass through

This commit is contained in:
Chris Roberts 2021-03-17 13:08:43 -07:00
parent 3316098bb6
commit 16e91e4ba2

View File

@ -7,7 +7,7 @@ module VagrantPlugins
return "#{Vagrant.server_url}/api/v1"
end
begin
addr = URI.parse(Vagrant.server_url.to_s)
addr = URI.parse(Vagrant.server_url)
if addr.path.empty? || addr.path.to_s == "/"
addr.path = "/api/v1"
end