def get_instance_disk_info(self, instance_name, block_device_info=None):
    try:
        dom = self._lookup_by_name(instance_name)
        xml = dom.XMLDesc(0)
    except libvirt.libvirtError as ex:
        error_code = ex.get_error_code()
        msg = (_('Error from libvirt while getting description of %(instance_name)s: [Error Code %(error_code)s] %(ex)s') % {'instance_name': instance_name, 'error_code': error_code, 'ex': ex})
        LOG.warn(msg)
        raise exception.InstanceNotFound(instance_id=instance_name)
    return self._get_instance_disk_info(instance_name, xml, block_device_info)
def get_instance_disk_info(self, instance_name, block_device_info=None):
    try:
        dom = self._lookup_by_name(instance_name)
        xml = dom.XMLDesc(0)
    except libvirt.libvirtError as ex:
        error_code = ex.get_error_code()
        msg = (_('Error from libvirt while getting description of %(instance_name)s: [Error Code %(error_code)s] %(ex)s') % {'instance_name': instance_name, 'error_code': error_code, 'ex': ex})
        LOG.warn(msg)
        raise exception.InstanceNotFound(instance_id=instance_name)
    return self._get_instance_disk_info(instance_name, xml, block_device_info)