Merge "Fix output error for type-show command"
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user