def _get_guest_disk_config(self, instance, name, disk_mapping, inst_type, image_type=None):
    image = self.image_backend.image(instance, name, image_type)
    disk_info = disk_mapping[name]
    return image.libvirt_info(disk_info['bus'], disk_info['dev'], disk_info['type'], self.disk_cachemode, inst_type['extra_specs'], self._get_hypervisor_version())
def _get_guest_disk_config(self, instance, name, disk_mapping, inst_type, image_type=None):
    image = self.image_backend.image(instance, name, image_type)
    disk_info = disk_mapping[name]
    return image.libvirt_info(disk_info['bus'], disk_info['dev'], disk_info['type'], self.disk_cachemode, inst_type['extra_specs'], self._get_hypervisor_version())