diff options
| author | Steve Martinelli <stevemar@ca.ibm.com> | 2015-08-13 21:57:53 -0700 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-09-07 01:37:37 -0500 |
| commit | 36a9703a192af16d2bad8cc7fec1eba25de8d01b (patch) | |
| tree | 2f421c926326dde1329dd0fa9e8e0d7bcdc5d83a /openstackclient/identity | |
| parent | 0cc1e5aa2b7ff7fa55e6083a397c07fc1cc744dd (diff) | |
| download | python-openstackclient-36a9703a192af16d2bad8cc7fec1eba25de8d01b.tar.gz | |
Support listing users by group name
Listing users within a group is not presently domain scoped. We
do not use the domain info at all when the group option is present.
A new --group-domain option is not needed since we cannot list
users by --project and --group, they are mutually exclusive (as
per the identity API).
Closes-Bug: 1492916
Change-Id: I50f995ee4a03c2bdb21f2b5722546ab8fe786eb6
Diffstat (limited to 'openstackclient/identity')
| -rw-r--r-- | openstackclient/identity/v3/user.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/openstackclient/identity/v3/user.py b/openstackclient/identity/v3/user.py index 459707d2..737ebc65 100644 --- a/openstackclient/identity/v3/user.py +++ b/openstackclient/identity/v3/user.py @@ -214,13 +214,11 @@ class ListUser(lister.Lister): domain = common.find_domain(identity_client, parsed_args.domain).id + group = None if parsed_args.group: - group = utils.find_resource( - identity_client.groups, - parsed_args.group, - ).id - else: - group = None + group = common.find_group(identity_client, + parsed_args.group, + parsed_args.domain).id if parsed_args.project: if domain is not None: |
