1
0
Fork 0
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:
Philip Mark M. Deazeta 2012-11-08 15:02:27 +08:00 committed by Nelvin Driz
parent e908197c66
commit 27ba6d44a2

View file

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