Adding bootable column to volume list view
displays whether a volume is bootable based on cinder's api response for /volumes Change-Id: I8f6cc6e02be8226914f65717dcb2e0367553e51f
This commit is contained in:
parent
112bd60d4e
commit
c01e7822f9
@ -148,7 +148,7 @@ def do_list(cs, args):
|
||||
servers = [s.get('server_id') for s in vol.attachments]
|
||||
setattr(vol, 'attached_to', ','.join(map(str, servers)))
|
||||
utils.print_list(volumes, ['ID', 'Status', 'Display Name',
|
||||
'Size', 'Volume Type', 'Attached to'])
|
||||
'Size', 'Volume Type', 'Bootable', 'Attached to'])
|
||||
|
||||
|
||||
@utils.arg('volume', metavar='<volume>', help='ID of the volume.')
|
||||
|
@ -27,6 +27,7 @@ def _stub_volume(**kwargs):
|
||||
'display_name': None,
|
||||
'display_description': None,
|
||||
"attachments": [],
|
||||
"bootable": "false",
|
||||
"availability_zone": "cinder",
|
||||
"created_at": "2012-08-27T00:00:00.000000",
|
||||
"display_description": None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user