Various fixes to URL paths
diff --git a/openstack/identity/v2/extensions/admin/roles/urls.go b/openstack/identity/v2/extensions/admin/roles/urls.go
index 170658d..61b3155 100644
--- a/openstack/identity/v2/extensions/admin/roles/urls.go
+++ b/openstack/identity/v2/extensions/admin/roles/urls.go
@@ -3,18 +3,19 @@
import "github.com/rackspace/gophercloud"
const (
- ExtPath = "OS-KSADMN/roles"
+ ExtPath = "OS-KSADM"
+ RolePath = "roles"
UserPath = "users"
)
func resourceURL(c *gophercloud.ServiceClient, id string) string {
- return c.ServiceURL(ExtPath, id)
+ return c.ServiceURL(ExtPath, RolePath, id)
}
func rootURL(c *gophercloud.ServiceClient) string {
- return c.ServiceURL(ExtPath)
+ return c.ServiceURL(ExtPath, RolePath)
}
func userRoleURL(c *gophercloud.ServiceClient, tenantID, userID, roleID string) string {
- return c.ServiceURL("tenants", tenantID, UserPath, userID, ExtPath, roleID)
+ return c.ServiceURL("tenants", tenantID, UserPath, userID, RolePath, ExtPath, roleID)
}