Example #1
0
 def get_by_instance_uuids(cls, context, instance_uuids, use_slave=False):
     db_bdms = db.block_device_mapping_get_all_by_instance_uuids(
             context, instance_uuids, use_slave=use_slave)
     return base.obj_make_list(
             context, cls(), objects.BlockDeviceMapping, db_bdms or [])
Example #2
0
 def _db_block_device_mapping_get_all_by_instance_uuids(
         context, instance_uuids, use_slave=False):
     return db.block_device_mapping_get_all_by_instance_uuids(
             context, instance_uuids)