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/extensions/delegate.go b/openstack/networking/v2/extensions/delegate.go
index b6006ab..d08e1fd 100644
--- a/openstack/networking/v2/extensions/delegate.go
+++ b/openstack/networking/v2/extensions/delegate.go
@@ -29,22 +29,13 @@
return outer, nil
}
-// rebased is a temporary workaround to isolate changes to this package. FIXME: set ResourceBase
-// in the NewNetworkV2 method and remove the version string from URL generation methods in
-// networking resources.
-func rebased(c *gophercloud.ServiceClient) *gophercloud.ServiceClient {
- var r = *c
- r.ResourceBase = c.Endpoint + "v2.0/"
- return &r
-}
-
// Get retrieves information for a specific extension using its alias.
func Get(c *gophercloud.ServiceClient, alias string) GetResult {
- return GetResult{common.Get(rebased(c), alias)}
+ return GetResult{common.Get(c, alias)}
}
// List returns a Pager which allows you to iterate over the full collection of extensions.
// It does not accept query parameters.
func List(c *gophercloud.ServiceClient) pagination.Pager {
- return common.List(rebased(c))
+ return common.List(c)
}