Fix the issue non-admin user failed to list trusts

Openstacksdk did not pass filters(trustor_user_id or trustee_user_id)
to keystone, this made non-admin user failed to list trusts with the
error "admin_required". Please see the code at keystone side:
http://git.openstack.org/cgit/openstack/keystone/tree/keystone/trust/controllers.py#n193

Change-Id: I54bdf75cae7713d2faa1cec98c894ddd4c6a8581
This commit is contained in:
lvdongbing 2016-09-17 23:23:22 -04:00
parent 61bc6fce83
commit d896daa7fe
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ class Trust(resource.Resource):
allow_delete = True
allow_list = True
_query_mapping = resource.QueryParameters(
'trustor_user_id', 'trustee_user_id')
# Properties
#: A boolean indicating whether the trust can be issued by the trustee as
#: a regulart trust. Default is ``False``.