'Get compute node by ID or UUID.'

def compute_node_get(self, message, compute_id):

    if uuidutils.is_uuid_like(compute_id):
        return objects.ComputeNode.get_by_uuid(message.ctxt, compute_id)
    return objects.ComputeNode.get_by_id(message.ctxt, compute_id)
