mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|identity] Express the "add user role" intent more clearly
This commit is contained in:
parent
de17f485a3
commit
568d290ca9
1 changed files with 5 additions and 1 deletions
|
@ -49,9 +49,13 @@ module Fog
|
|||
self
|
||||
end
|
||||
|
||||
def add_user(user_id, role_id)
|
||||
def grant_user_role(user_id, role_id)
|
||||
connection.add_user_to_tenant(self.id, user_id, role_id)
|
||||
end
|
||||
|
||||
def revoke_user_role(user_id, role_id)
|
||||
connection.remove_user_from_tenant(self.id, user_id, role_id)
|
||||
end
|
||||
end # class Tenant
|
||||
end # class OpenStack
|
||||
end # module Identity
|
||||
|
|
Loading…
Add table
Reference in a new issue