mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
0d9b04b104
User#roles should be calling Service#list_roles_for_user_on_tenant directly and not use Roles#all since the latter is actually a method for getting all roles in the Identity Service
21 lines
431 B
Ruby
21 lines
431 B
Ruby
require 'fog/core/collection'
|
|
require 'fog/openstack/models/identity/role'
|
|
|
|
module Fog
|
|
module Identity
|
|
class OpenStack
|
|
class Roles < Fog::Collection
|
|
model Fog::Identity::OpenStack::Role
|
|
|
|
def all
|
|
load(connection.list_roles.body['roles'])
|
|
end
|
|
|
|
def get(id)
|
|
connection.get_role(id)
|
|
end
|
|
|
|
end
|
|
end # class OpenStack
|
|
end # module Compute
|
|
end # module Fog
|