if(action->task != stonith_node) {
if(action->task != stonith_node && (action->pseudo == FALSE && action->node != NULL)) {
action2xml(action_t *action, gboolean as_input){	xmlNodePtr action_xml = NULL;		if(action == NULL) {		return NULL;	}	crm_debug("Dumping action%d as XML", action->id);	switch(action->task) {		case stonith_node:		case shutdown_crm:			action_xml = create_xml_node(NULL, "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:			action_xml = create_xml_node(NULL, "rsc_op");			if(!as_input) {				add_node_copy(					action_xml,					safe_val3(NULL, action, rsc, xml));			}						set_xml_property_copy(				action_xml, XML_ATTR_ID, crm_itoa(action->id));			set_xml_property_copy(				action_xml, XML_LRM_ATTR_RSCID,				safe_val3("__no_rsc__", action, rsc, id));			set_xml_property_copy(				action_xml, XML_LRM_ATTR_TASK, task2text(action->task));						break;	}	if(action->task != stonith_node) {		set_xml_property_copy(			action_xml, XML_LRM_ATTR_TARGET,			safe_val4("__no_node__", action, node, details,uname));		set_xml_property_copy(			action_xml, XML_LRM_ATTR_TARGET_UUID,			safe_val4("__no_uuid__", action, node, details, id));	}	set_xml_property_copy(		action_xml, "allow_fail",		action->failure_is_fatal?XML_BOOLEAN_FALSE:XML_BOOLEAN_TRUE);	set_xml_property_copy(		action_xml, "timeout", action->timeout);/* 	set_xml_property_copy( *//* 		action_xml, XML_LRM_ATTR_OPTIONAL, *//* 		action->optional?XML_BOOLEAN_TRUE:XML_BOOLEAN_FALSE); *//* 	set_xml_property_copy( *//* 		action_xml, XML_LRM_ATTR_RUNNABLE, *//* 		action->runnable?XML_BOOLEAN_TRUE:XML_BOOLEAN_FALSE); */	if(as_input) {		return action_xml;	}	/* 	set_xml_property_copy( *//* 		action_xml, XML_LRM_ATTR_DISCARD, *//* 		action->discard?XML_BOOLEAN_TRUE:XML_BOOLEAN_FALSE); */		add_node_copy(action_xml, action->args);		return action_xml;}