Fixing list roles URL
diff --git a/openstack/identity/v2/users/urls.go b/openstack/identity/v2/users/urls.go
index a40160c..7ec4385 100644
--- a/openstack/identity/v2/users/urls.go
+++ b/openstack/identity/v2/users/urls.go
@@ -5,6 +5,7 @@
const (
tenantPath = "tenants"
userPath = "users"
+ rolePath = "roles"
)
func ResourceURL(c *gophercloud.ServiceClient, id string) string {
@@ -16,5 +17,5 @@
}
func listRolesURL(c *gophercloud.ServiceClient, tenantID, userID string) string {
- return c.ServiceURL(tenantPath, tenantID, userPath, userID)
+ return c.ServiceURL(tenantPath, tenantID, userPath, userID, rolePath)
}