diff options
| author | Steve Martinelli <stevemar@ca.ibm.com> | 2014-12-16 22:49:13 -0500 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-01-02 02:39:44 -0500 |
| commit | e7ec6bc6e447ce5f455551874fdf09828c440500 (patch) | |
| tree | dcb34fb0e4f361a9772ff6a34845059e5de6659f /openstackclient/identity | |
| parent | 52d22359f100c287c375edc73b6c4bd61be4c8da (diff) | |
| download | python-openstackclient-e7ec6bc6e447ce5f455551874fdf09828c440500.tar.gz | |
Rename column to `default project id` for long listing v3 user
Previously this column was coming up as empty, since user's
have a `default project id`, not just `project id`.
Change-Id: I3d7f7eb600e9526b9c6cc2a8c5d6009b9100b1f5
Diffstat (limited to 'openstackclient/identity')
| -rw-r--r-- | openstackclient/identity/v3/user.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/openstackclient/identity/v3/user.py b/openstackclient/identity/v3/user.py index 665dd4bb..d7ccff53 100644 --- a/openstackclient/identity/v3/user.py +++ b/openstackclient/identity/v3/user.py @@ -15,6 +15,7 @@ """Identity v3 User action implementations""" +import copy import logging import six @@ -217,17 +218,21 @@ class ListUser(lister.Lister): # List users if parsed_args.long: - columns = ('ID', 'Name', 'Project Id', 'Domain Id', - 'Description', 'Email', 'Enabled') + columns = ['ID', 'Name', 'Default Project Id', 'Domain Id', + 'Description', 'Email', 'Enabled'] + column_headers = copy.deepcopy(columns) + column_headers[2] = 'Project' + column_headers[3] = 'Domain' else: - columns = ('ID', 'Name') + columns = ['ID', 'Name'] + column_headers = copy.deepcopy(columns) data = identity_client.users.list( domain=domain, group=group, ) return ( - columns, + column_headers, (utils.get_item_properties( s, columns, formatters={}, |
