crm_verbose("filling in the nodes to perform the actions on");
stage5(GListPtr resources){		int lpc = 0;	crm_verbose("filling in the nodes to perform the actions on");	slist_iter(		rsc, resource_t, resources, lpc,		crm_debug_action(print_resource("Processing", rsc, FALSE));				if(safe_val(NULL, rsc, stop) == NULL		   || safe_val(NULL, rsc, start) == NULL) {			// error			crm_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;			crm_warn("Stop resource %s (%s)",				  safe_val(NULL, rsc, id),				  safe_val5(NULL, rsc, stop, node,details,id));			crm_debug_action(				print_action(					CRMD_STATE_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))){			crm_verbose("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);			crm_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);			crm_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;}