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/subnets/urls.go b/openstack/networking/v2/subnets/urls.go
index ca70b66..0d02368 100644
--- a/openstack/networking/v2/subnets/urls.go
+++ b/openstack/networking/v2/subnets/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, "subnets", id)
+ return c.ServiceURL("subnets", id)
}
func rootURL(c *gophercloud.ServiceClient) string {
- return c.ServiceURL(version, "subnets")
+ return c.ServiceURL("subnets")
}
func listURL(c *gophercloud.ServiceClient) string {