Display flavor-ephemeral in trove flavor-list command

This commit adds ephemeral column to flavor-list

Depends-On:I537bc2f3578e1e99b22f701f70ab8d96fec8908e

Closes-Bug:1617980

Change-Id: Ie322378215aa933b16ea2fd8ae0762f0b4bd0ace
This commit is contained in:
jiansong 2016-08-23 21:00:50 -07:00
parent e403659799
commit 7a70882fc3
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
other:
- Add ephemeral column in flavor-list Bug 1617980.

View File

@ -220,7 +220,8 @@ def do_flavor_list(cs, args):
f.id = f.str_id
_flavors.append(f)
utils.print_list(_flavors, ['id', 'name', 'ram', 'vcpus', 'disk'],
utils.print_list(_flavors, ['id', 'name', 'ram', 'vcpus', 'disk',
'ephemeral'],
labels={'ram': 'RAM', 'vcpus': 'vCPUs', 'disk': 'Disk'})