Display more flavor information in trove flavor-list command

This commit adds disk_space colmn to flavor-list

Change-Id: Iffd24d3527af7ba34da233833eb1a9831b84f8a6
This commit is contained in:
song jian
2016-08-09 20:20:02 -07:00
committed by jiansong
parent 942f369884
commit d0599d9006
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
---
other:
- Add disk column in flavor-list.

View File

@@ -220,8 +220,8 @@ def do_flavor_list(cs, args):
f.id = f.str_id
_flavors.append(f)
utils.print_list(_flavors, ['id', 'name', 'ram', 'vcpus'],
labels={'ram': 'RAM', 'vcpus': 'vCPUs'})
utils.print_list(_flavors, ['id', 'name', 'ram', 'vcpus', 'disk'],
labels={'ram': 'RAM', 'vcpus': 'vCPUs', 'disk': 'Disk'})
@utils.arg('flavor', metavar='<flavor>', type=str,