this_node->details->online = TRUE;
if(this_node != NULL) { this_node->details->online = TRUE; }
determine_online_status(xmlNodePtr node_state, node_t *this_node){	const char *uname      = xmlGetProp(node_state,XML_ATTR_UNAME);/*	const char *state      = xmlGetProp(node_state,XML_NODE_ATTR_STATE); */	const char *exp_state  = xmlGetProp(node_state,XML_CIB_ATTR_EXPSTATE);	const char *join_state = xmlGetProp(node_state,XML_CIB_ATTR_JOINSTATE);	const char *crm_state  = xmlGetProp(node_state,XML_CIB_ATTR_CRMDSTATE);	const char *ccm_state  = xmlGetProp(node_state,XML_CIB_ATTR_INCCM);	const char *shutdown   = xmlGetProp(node_state,XML_CIB_ATTR_SHUTDOWN);	const char *unclean    = NULL;/*xmlGetProp(node_state,XML_CIB_ATTR_STONITH); */		if(safe_str_eq(join_state, CRMD_JOINSTATE_MEMBER)	   && safe_str_eq(ccm_state, XML_BOOLEAN_YES)	   && safe_str_eq(crm_state, ONLINESTATUS)	   && shutdown == NULL) {		this_node->details->online = TRUE;		crm_debug("Node %s is online", uname);	} else {		/* remove node from contention */		this_node->weight = -1;		this_node->fixed = TRUE;		crm_verbose("join_state %s, expected %s, shutdown %s",			    crm_str(join_state), crm_str(exp_state),			    crm_str(shutdown));		if(unclean != NULL) {			this_node->details->unclean = TRUE;						} else if(is_node_unclean(node_state)) {			/* report and or take remedial action */			this_node->details->unclean = TRUE;		}				if(shutdown != NULL) {			this_node->details->shutdown = TRUE;		}		if(this_node->details->unclean) {			crm_warn("Node %s is due for STONITH", uname);		}		if(this_node->details->shutdown) {			crm_info("Node %s is due for shutdown", uname);		}	}	return TRUE;}