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

* windows/pandora_wmi.cc: Fixed inventory NIC information.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3339 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2010-10-04 17:24:10 +00:00
parent f3b062d6ed
commit e1685c7b77
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-10-04 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: Fixed inventory NIC information.
2010-10-04 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_inventory.cc: Fixed XML generation for

View File

@ -988,14 +988,14 @@ Pandora_Wmi::getNICsInfo (list<string> &rows) {
ret += caption;
}
dhFreeString(caption);
ret += inventory_field_separator + " MAC: ";
ret += inventory_field_separator;
dhGetValue (L"%s", &mac_address, nic_info_item,
L".MACAddress");
if (mac_address != NULL) {
ret += mac_address;
}
dhFreeString (mac_address);
ret += inventory_field_separator + " IP: ";
ret += inventory_field_separator;
dhGetValue (L"%v", &ip_addresses, nic_info_item,
L".IPAddress");
if (&ip_addresses != NULL)