d['size'] = vol['size']
d['availability_zone'] = vol['availability_zone']
d['created_at'] = vol['created_at']
- d['bootable'] = vol['bootable']
+
+ # Need to form the string true/false explicitly here to
+ # maintain our API contract
+ if vol['bootable']:
+ d['bootable'] = 'true'
+ else:
+ d['bootable'] = 'false'
d['attachments'] = []
if vol['attach_status'] == 'attached':
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'image_id': test_id,
'snapshot_id': None,
'host_name': None,
'device': '/'
}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'device': '/'
}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'device': '/'
}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'None',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'None',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'None',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'availability_zone': 'fakeaz',
'display_name': 'displayname',
'attachments': [],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': True,
+ 'bootable': 'true',
'volume_type': 'vol_type_name',
'snapshot_id': None,
'source_volid': None,
'host_name': None,
'id': '1',
'volume_id': '1'}],
- 'bootable': False,
+ 'bootable': 'false',
'volume_type': 'None',
'snapshot_id': None,
'source_volid': None,
status='vol_status',
size=1024,
availability_zone='vol_availability',
- bootable=False,
+ bootable='false',
created_at=datetime.datetime.now(),
attachments=[dict(id='vol_id',
volume_id='vol_id',
status='vol1_status',
size=1024,
availability_zone='vol1_availability',
- bootable=True,
+ bootable='true',
created_at=datetime.datetime.now(),
attachments=[dict(id='vol1_id',
volume_id='vol1_id',
status='vol2_status',
size=1024,
availability_zone='vol2_availability',
- bootable=False,
+ bootable='true',
created_at=datetime.datetime.now(),
attachments=[dict(id='vol2_id',
volume_id='vol2_id',