Networking URL construction no longer adds /v2.0
Because it's already handled by the ResourceBase that's set up when you
acquire a client.
diff --git a/openstack/networking/v2/networks/urls.go b/openstack/networking/v2/networks/urls.go
index 80c307c..33c2387 100644
--- a/openstack/networking/v2/networks/urls.go
+++ b/openstack/networking/v2/networks/urls.go
@@ -2,14 +2,12 @@
import "github.com/rackspace/gophercloud"
-const Version = "v2.0"
-
func resourceURL(c *gophercloud.ServiceClient, id string) string {
- return c.ServiceURL(Version, "networks", id)
+ return c.ServiceURL("networks", id)
}
func rootURL(c *gophercloud.ServiceClient) string {
- return c.ServiceURL(Version, "networks")
+ return c.ServiceURL("networks")
}
func getURL(c *gophercloud.ServiceClient, id string) string {