mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|identity] use tenant_id parameter in users model
This commit is contained in:
parent
e908197c66
commit
27ba6d44a2
1 changed files with 1 additions and 2 deletions
|
@ -7,10 +7,9 @@ module Fog
|
|||
class Users < Fog::Collection
|
||||
model Fog::Identity::OpenStack::User
|
||||
|
||||
attribute :tenant
|
||||
attribute :tenant_id
|
||||
|
||||
def all
|
||||
tenant_id = tenant.nil? ? nil : tenant.id
|
||||
load(connection.list_users(tenant_id).body['users'])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue