diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-03-10 14:59:32 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-03-10 14:59:32 +0000 |
| commit | 2800fb06197136d3b4e7f446a11a5da9b5b507ca (patch) | |
| tree | 214ef6abf603d77f9c6d8bf655993b595f2c75ab /cinderclient/v2/shell.py | |
| parent | 5badc3ef3171fa7efc658aabbb2c427e69c1146d (diff) | |
| parent | b91b733933ff85793beb6fdb9dadc30a2ae80d91 (diff) | |
| download | python-cinderclient-2800fb06197136d3b4e7f446a11a5da9b5b507ca.tar.gz | |
Merge "Remove cinder credentials command"
Diffstat (limited to 'cinderclient/v2/shell.py')
| -rw-r--r-- | cinderclient/v2/shell.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index c0a38fa..42dcb6f 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -966,13 +966,9 @@ def do_endpoints(cs, args): def do_credentials(cs, args): """Shows user credentials returned from auth.""" - catalog = cs.client.service_catalog.catalog - - # formatters defines field to be converted from unicode to string - utils.print_dict(catalog['user'], "User Credentials", - formatters=['domain', 'roles']) - utils.print_dict(catalog['token'], "Token", - formatters=['audit_ids', 'tenant']) + warnings.warn( + "``cinder credentials`` is deprecated, use ``openstack token issue`` " + "indead.") @utils.arg('tenant', |
