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:
parent
61bc6fce83
commit
d896daa7fe
|
@ -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``.
|
||||
|
|
Loading…
Reference in New Issue