weight = 100.0;
unpack_healthy_resource(GListPtr *node_constraints, GListPtr *actions,			xmlNodePtr rsc_entry, resource_t *rsc_lh, node_t *node){	double weight = 1.0;	const char *last_op  = xmlGetProp(rsc_entry, "last_op");	crm_debug("Unpacking healthy action %s on %s", last_op, rsc_lh->id);	if(safe_str_neq(last_op, "stop")) {		if(rsc_lh->cur_node != NULL) {			crm_err("Resource %s running on multiple nodes %s, %s",				rsc_lh->id,				rsc_lh->cur_node->details->uname,				node->details->uname);			// TODO: some recovery action!!			// like force a stop on the second node?			return FALSE;					} else {			/* we prefer to stay running here */			weight = 100.0;						/* create the link between this node and the rsc */			crm_verbose("Setting cur_node = %s for rsc = %s",				    node->details->uname, rsc_lh->id);						rsc_lh->cur_node = node;			node->details->running_rsc = g_list_append(				node->details->running_rsc, rsc_lh);		}			} else {		/* we prefer to start where we once ran successfully */		weight = 20.0;	}#if 0	// redundant now that running and not_running constraint tests exist,	// admins should turn this on manually per resource 	rsc2node_new(		"healthy_generate",rsc_lh, weight, TRUE,node,node_constraints);#endif	return TRUE;}