diff --git a/cinderclient/tests/unit/v2/fakes.py b/cinderclient/tests/unit/v2/fakes.py index 294070d56..af44155dc 100644 --- a/cinderclient/tests/unit/v2/fakes.py +++ b/cinderclient/tests/unit/v2/fakes.py @@ -645,7 +645,7 @@ class FakeHTTPClient(base_client.HTTPClient): return (200, {}, {'volume_type': {'id': 1, 'name': 'test-type-1', 'description': 'test_type-1-desc', - 'extra_specs': {}}}) + 'extra_specs': {u'key': u'value'}}}) def get_types_2(self, **kw): return (200, {}, {'volume_type': {'id': 2, diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py index 2c55e2776..fefe5a047 100644 --- a/cinderclient/v3/shell.py +++ b/cinderclient/v3/shell.py @@ -896,7 +896,7 @@ def do_type_show(cs, args): info.update(vtype._info) info.pop('links', None) - utils.print_dict(info) + utils.print_dict(info, formatters=['extra_specs']) @utils.arg('id',