Merge "Fix output error for type-show command"

This commit is contained in:
Jenkins
2016-07-08 04:40:28 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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',