def get_disk_info(virt_type, instance, image_meta,
                  block_device_info=None, rescue=False):

    disk_bus = get_disk_bus_for_device_type(instance, virt_type,
                                            image_meta, "disk")
    cdrom_bus = get_disk_bus_for_device_type(instance, virt_type,
                                             image_meta, "cdrom")
    mapping = get_disk_mapping(virt_type, instance,
                               disk_bus, cdrom_bus,
                               image_meta,
                               block_device_info,
                               rescue)

    return {'disk_bus': disk_bus,
            'cdrom_bus': cdrom_bus,
            'mapping': mapping}
Return layout structure used to map self.text to a canvas.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/blockinfo.py/get_disk_info--crossover with--dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/widget.py/Text.get_line_translation