'Return compute node entry for particular integer ID or UUID.'

def compute_node_get(self, context, compute_id):

    load_cells()
    is_uuid = uuidutils.is_uuid_like(compute_id)
    for cell in CELLS:
        if (cell.uuid == objects.CellMapping.CELL0_UUID):
            continue
        with nova_context.target_cell(context, cell) as cctxt:
            try:
                if is_uuid:
                    return objects.ComputeNode.get_by_uuid(cctxt, compute_id)
                return objects.ComputeNode.get_by_id(cctxt, int(compute_id))
            except exception.ComputeHostNotFound:
                continue
    raise exception.ComputeHostNotFound(host=compute_id)
