summaryrefslogtreecommitdiff
path: root/openstackclient/object/v1
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/object/v1')
-rw-r--r--openstackclient/object/v1/account.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/openstackclient/object/v1/account.py b/openstackclient/object/v1/account.py
index 1f38b96a..4ff890ce 100644
--- a/openstackclient/object/v1/account.py
+++ b/openstackclient/object/v1/account.py
@@ -13,10 +13,11 @@
"""Account v1 action implementations"""
-
import logging
from cliff import command
+from cliff import show
+import six
from openstackclient.common import parseractions
from openstackclient.common import utils
@@ -46,6 +47,17 @@ class SetAccount(command.Command):
)
+class ShowAccount(show.ShowOne):
+ """Display account details"""
+
+ log = logging.getLogger(__name__ + '.ShowAccount')
+
+ @utils.log_method(log)
+ def take_action(self, parsed_args):
+ data = self.app.client_manager.object_store.account_show()
+ return zip(*sorted(six.iteritems(data)))
+
+
class UnsetAccount(command.Command):
"""Unset account properties"""