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:
Mike Perez 2012-11-18 19:55:49 -08:00
parent 112bd60d4e
commit c01e7822f9
2 changed files with 2 additions and 1 deletions
cinderclient/v1
tests/v1

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