diff options
| author | Akihiro Motoki <amotoki@gmail.com> | 2017-05-15 04:01:07 +0000 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2019-06-22 18:44:27 +0000 |
| commit | c2630ae91a0e4bae662926a0e45d71c79683b584 (patch) | |
| tree | 37ed4f271a20236cb1aa95f16f906a5a3e3f6e4e /openstackclient/object/v1/account.py | |
| parent | 1a21f02bc7507120f3a4fe2af12ba7a27b002b44 (diff) | |
| download | python-openstackclient-c2630ae91a0e4bae662926a0e45d71c79683b584.tar.gz | |
Use cliff formattable columns in object storage commands
Partial-Bug: #1687955
Partially implement blueprint osc-formattable-columns
Change-Id: I65737561c9b5ef29f5878316d2ff89f3d538158f
Diffstat (limited to 'openstackclient/object/v1/account.py')
| -rw-r--r-- | openstackclient/object/v1/account.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstackclient/object/v1/account.py b/openstackclient/object/v1/account.py index 4847f8bb..95be8132 100644 --- a/openstackclient/object/v1/account.py +++ b/openstackclient/object/v1/account.py @@ -13,9 +13,9 @@ """Account v1 action implementations""" +from osc_lib.cli import format_columns from osc_lib.cli import parseractions from osc_lib.command import command -from osc_lib import utils import six from openstackclient.i18n import _ @@ -48,7 +48,8 @@ class ShowAccount(command.ShowOne): def take_action(self, parsed_args): data = self.app.client_manager.object_store.account_show() if 'properties' in data: - data['properties'] = utils.format_dict(data.pop('properties')) + data['properties'] = format_columns.DictColumn( + data.pop('properties')) return zip(*sorted(six.iteritems(data))) |
