print_action("active", rsc->stop, FALSE));
print_action( CRMD_STATE_ACTIVE, rsc->stop, FALSE));
stage5(GSListPtr resources){		pdebug("filling in the nodes to perform the actions on");	int lpc = 0;	slist_iter(		rsc, resource_t, resources, lpc,		print_resource("Processing", rsc, FALSE);				if(safe_val(NULL, rsc, stop) == NULL		   || safe_val(NULL, rsc, start) == NULL) {			// error			cl_log(LOG_ERR,			       "Either start action (%p) or"			       " stop action (%p) were not defined",			       safe_val(NULL, rsc, stop),			       safe_val(NULL, rsc, start));			continue;		}		if(safe_val4(NULL, rsc, color, details, chosen_node) == NULL) {			rsc->stop->node = safe_val(NULL, rsc, cur_node);						rsc->start->node = NULL;			cl_log(LOG_DEBUG,			       "Stop resource %s (%s)",			       safe_val(NULL, rsc, id),			       safe_val5(NULL, rsc, stop, node, details, id));			pdebug_action(				print_action("active", rsc->stop, FALSE));								} else if(safe_str_eq(safe_val4(NULL, rsc, cur_node, details, id),				      safe_val6(NULL, rsc, color ,details,						chosen_node, details, id))){			cl_log(LOG_DEBUG,			       "No change for Resource %s (%s)",			       safe_val(NULL, rsc, id),			       safe_val4(NULL, rsc, cur_node, details, id));			rsc->stop->optional = TRUE;			rsc->start->optional = TRUE;			rsc->stop->node = safe_val(NULL, rsc, cur_node);			rsc->start->node = safe_val4(NULL, rsc, color,						     details, chosen_node);					} else if(safe_val4(NULL, rsc, cur_node, details, id) == NULL) {			rsc->stop->optional = TRUE;			rsc->start->node = safe_val4(NULL, rsc, color,						     details, chosen_node);			cl_log(LOG_DEBUG,			       "Start resource %s (%s)",			       safe_val(NULL, rsc, id),			       safe_val5(NULL, rsc, start, node, details, id));					} else {			rsc->stop->node = safe_val(NULL, rsc, cur_node);			rsc->start->node = safe_val4(NULL, rsc, color,						     details, chosen_node);			cl_log(LOG_DEBUG,			       "Move resource %s (%s -> %s)",			       safe_val(NULL, rsc, id),			       safe_val5(NULL, rsc, stop, node, details, id),			       safe_val5(NULL, rsc, start, node, details, id));		}		if(rsc->stop->node != NULL) {			rsc->stop->runnable = TRUE;		}		if(rsc->start->node != NULL) {			rsc->start->runnable = TRUE;		}		);		return TRUE;}