def get_disk_info(virt_type, instance, block_device_info=None, image_meta=None, rescue=False):
 disk_bus = get_disk_bus_for_device_type(virt_type, image_meta, 'disk')
 cdrom_bus = get_disk_bus_for_device_type(virt_type, image_meta, 'cdrom')
 mapping = get_disk_mapping(virt_type, instance, disk_bus, cdrom_bus, block_device_info, image_meta, rescue)
 return {'disk_bus': disk_bus, 'cdrom_bus': cdrom_bus, 'mapping': mapping}

def get_disk_info ( virt_type , instance , block_device_info = None , image_meta = None , rescue = False ) : disk_bus = get_disk_bus_for_device_type ( virt_type , image_meta , 'disk' ) cdrom_bus = get_disk_bus_for_device_type ( virt_type , image_meta , 'cdrom' ) mapping = get_disk_mapping ( virt_type , instance , disk_bus , cdrom_bus , block_device_info , image_meta , rescue ) return { 'disk_bus' : disk_bus , 'cdrom_bus' : cdrom_bus , 'mapping' : mapping }
determine guest disk mapping info .