Updating api versions URLs to use service client initialization
diff --git a/openstack/networking/v2/apiversions/urls.go b/openstack/networking/v2/apiversions/urls.go
index c43f991..58aa2b6 100644
--- a/openstack/networking/v2/apiversions/urls.go
+++ b/openstack/networking/v2/apiversions/urls.go
@@ -7,9 +7,9 @@
)
func apiVersionsURL(c *gophercloud.ServiceClient) string {
- return c.ServiceURL("")
+ return c.Endpoint
}
func apiInfoURL(c *gophercloud.ServiceClient, version string) string {
- return c.ServiceURL(strings.TrimRight(version, "/") + "/")
+ return c.Endpoint + strings.TrimRight(version, "/") + "/"
}