lib/yao/client.rb in yao-0.3.2 vs lib/yao/client.rb in yao-0.3.3

- old
+ new

@@ -26,11 +26,10 @@ def register_endpoints(endpoints, token: nil) endpoints.each_pair do |type, urls| # XXX: neutron just have v2.0 API and endpoint may not have version prefix if type == "network" urls = urls.map {|public_or_admin, url| - path = URI.parse(url).path - url = (path == '' || path == '/') ? File.join(url, "v2.0") : url + url = File.join(url, "v2.0") [public_or_admin, url] }.to_h end force_public_url = Yao.config.endpoints[type.to_sym][:public] rescue nil