crm_xml_debug(action_xml, "dumped action");  args_xml = create_xml_node(action_xml, XML_TAG_ATTRS); g_hash_table_foreach(action->extra, hash2nvpair, args_xml); 
if(action->rsc != NULL && action->pseudo == FALSE) { crm_data_t *rsc_xml = create_xml_node( action_xml, crm_element_name(action->rsc->xml)); 
action2xml(action_t *action, gboolean as_input){	crm_data_t * action_xml = NULL;	crm_data_t * args_xml = NULL;		if(action == NULL) {		return NULL;	}	crm_devel("Dumping action %d as XML", action->id);	switch(action->task) {		case stonith_node:		case shutdown_crm:			action_xml = create_xml_node(NULL, XML_GRAPH_TAG_CRM_EVENT);			set_xml_property_copy(				action_xml, XML_ATTR_ID, crm_itoa(action->id));			set_xml_property_copy(action_xml, XML_LRM_ATTR_TASK,					      task2text(action->task));			break;		default:			if(action->pseudo) {				action_xml = create_xml_node(NULL,XML_GRAPH_TAG_PSEUDO_EVENT);			} else {				action_xml = create_xml_node(NULL, XML_GRAPH_TAG_RSC_OP);			}			if(!as_input && action->rsc != NULL) {				crm_data_t *rsc_xml = create_xml_node(					action_xml, crm_element_name(action->rsc->xml));				copy_in_properties(rsc_xml, action->rsc->xml);			}						set_xml_property_copy(				action_xml, XML_ATTR_ID, crm_itoa(action->id));			if(safe_val3(NULL, action, rsc, id) != NULL) {				set_xml_property_copy(					action_xml, XML_LRM_ATTR_RSCID,					safe_val3(NULL, action, rsc, id));			}						set_xml_property_copy(action_xml, XML_LRM_ATTR_TASK,					      task2text(action->task));						break;	}	if(action->task != stonith_node	   && (action->pseudo == FALSE || action->node != NULL)) {		const char *default_value = NULL;		if(as_input) {			default_value = "__none__";		}		set_xml_property_copy(			action_xml, XML_LRM_ATTR_TARGET,			safe_val4(default_value, action, node, details,uname));		set_xml_property_copy(			action_xml, XML_LRM_ATTR_TARGET_UUID,			safe_val4(default_value, action, node, details, id));		CRM_DEV_ASSERT(NULL != crm_element_value(				       action_xml, XML_LRM_ATTR_TARGET));				CRM_DEV_ASSERT(NULL != crm_element_value(				       action_xml, XML_LRM_ATTR_TARGET_UUID));	}	set_xml_property_copy(		action_xml, "allow_fail",		action->failure_is_fatal?XML_BOOLEAN_FALSE:XML_BOOLEAN_TRUE);		if(as_input) {		return action_xml;	}	crm_xml_debug(action_xml, "dumped action");		args_xml = create_xml_node(action_xml, XML_TAG_ATTRS);	g_hash_table_foreach(action->extra, hash2nvpair, args_xml);	if(action->rsc != NULL) {		g_hash_table_foreach(			action->rsc->parameters, hash2nvpair, args_xml);	}		crm_xml_verbose(args_xml, "copied in extra attributes");		return action_xml;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/387b102dac5c8c5bab8c1e2033c2e60a296a879a/graph.c/clean/crm/pengine/graph.c