Merge "Use _get_token_resource in role assignment list"

This commit is contained in:
Jenkins 2017-05-24 19:17:03 +00:00 committed by Gerrit Code Review
commit 4a27f51446
2 changed files with 8 additions and 1 deletions

View File

@ -128,7 +128,8 @@ class ListRoleAssignment(command.Lister):
if parsed_args.project:
project = common.find_project(
identity_client,
parsed_args.project,
common._get_token_resource(identity_client, 'project',
parsed_args.project),
parsed_args.project_domain,
)
elif parsed_args.authproject:

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Make ``role assignment list`` callable without administrator permissions
if restricted to own project with ``--project`` parameter.
[Bug `1658189 <https://bugs.launchpad.net/python-openstackclient/+bug/1658189>`_]