From a6d5f3f94cb5d709c593c9638f44b3519222b4ca Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Sun, 19 Jul 2015 17:36:34 -0700 Subject: Format volume type properties when showing Currently, the properties of a volume type are unformatted. Use the formatter to keep things consistent with the way properties are represented in OSC. Change-Id: I81c6bd3fdbc30568c269e501c740473b2a1ffb4e --- openstackclient/volume/v2/volume_type.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openstackclient/volume/v2') diff --git a/openstackclient/volume/v2/volume_type.py b/openstackclient/volume/v2/volume_type.py index ae5cc8b8..c724d867 100644 --- a/openstackclient/volume/v2/volume_type.py +++ b/openstackclient/volume/v2/volume_type.py @@ -65,4 +65,6 @@ class ShowVolumeType(show.ShowOne): volume_client = self.app.client_manager.volume volume_type = utils.find_resource( volume_client.volume_types, parsed_args.volume_type) + properties = utils.format_dict(volume_type._info.pop('extra_specs')) + volume_type._info.update({'properties': properties}) return zip(*sorted(six.iteritems(volume_type._info))) -- cgit v1.2.1