1
0
Fork 0
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:
Mark Maglana 2012-05-03 13:38:12 +08:00 committed by Nelvin Driz
parent de17f485a3
commit 568d290ca9

View file

@ -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