res = findHaNode(cib, ID(anXmlNode)); if (res == NULL) { cl_log(LOG_INFO, "Update: " XML_CIB_TAG_NODE " (%s) did not exist, adding.", ID(anXmlNode)); addHaNode(cib, anXmlNode); } else { copy_in_properties(res, anXmlNode); } FNRET(0);
xmlNodePtr root = get_object_root(XML_CIB_TAG_NODES, cib); return update_cib_object(root, anXmlNode, FALSE);
updateHaNode(xmlNodePtr cib, cibHaNode *anXmlNode){	xmlNodePtr res = NULL;	FNIN();	CRM_DEBUG2("Update: " XML_CIB_TAG_NODE " (%s).", ID(anXmlNode));	res = findHaNode(cib, ID(anXmlNode));	if (res == NULL) {		cl_log(LOG_INFO,		       "Update: " XML_CIB_TAG_NODE		       " (%s) did not exist, adding.",		       ID(anXmlNode));		addHaNode(cib, anXmlNode);	} else {		copy_in_properties(res, anXmlNode);		}	FNRET(0);}