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