2010-10-04 Ramon Novoa <rnovoa@artica.es>

* modules/pandora_module_inventory.cc: Fixed XML generation for
	  inventory modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2010-10-04 14:02:27 +00:00
parent 8a34a54df0
commit db70e74db3
2 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2010-10-04 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_inventory.cc: Fixed XML generation for
inventory modules.
2010-08-04 Ramon Novoa <rnovoa@artica.es>
* Makefile.am: Use -static-libstdc++ to remove the dependency on

View File

@ -338,18 +338,17 @@ Pandora_Module_Inventory::getXml() {
module_xml += "]]></type>\n";
module_xml += "\t\t\t<datalist>\n";
} else {
try {
data_clean = strreplace (this->getDataOutput (data),
"%", "%%" );
} catch (Output_Error e) {
continue;
}
}
module_xml += "\t\t\t\t<data><![CDATA[";
module_xml += data_clean;
module_xml += "]]></data>\n";
try {
data_clean = strreplace (this->getDataOutput (data), "%", "%%" );
} catch (Output_Error e) {
continue;
}
module_xml += "\t\t\t\t<data><![CDATA[";
module_xml += data_clean;
module_xml += "]]></data>\n";
prev_module = current_module;
}