continue; } else if(this_node->details->shutdown) {
int native_num_allowed_nodes(resource_t *rsc){	int num_nodes = 0;	native_variant_data_t *native_data = NULL;	if(rsc->variant == pe_native) {		native_data = (native_variant_data_t *)rsc->variant_opaque;	} else {		pe_err("Resource %s was not a \"native\" variant",			rsc->id);		return 0;	}	if(native_data->color) {		crm_debug_4("Colored case");		num_nodes = num_allowed_nodes4color(native_data->color);			} else if(rsc->candidate_colors) {		/* TODO: sort colors first */		color_t *color = g_list_nth_data(rsc->candidate_colors, 0);		crm_debug_4("Candidate colors case");		num_nodes = num_allowed_nodes4color(color);	} else {		crm_debug_4("Default case");		slist_iter(			this_node, node_t, native_data->allowed_nodes, lpc,			crm_debug_3("Rsc %s Checking %s: %f",				    rsc->id, this_node->details->uname,				    this_node->weight);			if(this_node->weight < 0) {								continue;			} else if(this_node->details->shutdown) {				continue;/* 			} else if(this_node->details->unclean) { *//* 				continue; */			}						num_nodes++;			);	}	crm_debug_2("Resource %s can run on %d nodes", rsc->id, num_nodes);	return num_nodes;}