diff --git a/Changes b/Changes index 5fa782f29..d2564b650 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,7 @@ core: * fix #789: Avoid warning on commandline about possible confusion when reading quoted configuration value including a dash from configuration file * fix #790: Fix server URL parsing when it doesn't include scheme +* Add glpi_version configuration support to handle inventory_format dependent features inventory: * Fix rare windows perl error during drives, ipv6 network or videos inventory @@ -23,6 +24,11 @@ deploy: "return code is not" and "command output doesn't contain" checks which was always failing. +esx: +* Support reporting of ESX virtualmachines ip and operating system. It requires + inventory_format schema v1.1.36 on server-side included in GLPI v10.0.17. +* Add --glpi_version option support to glpi-esx script + packaging: * Update Windows MSI packing building process to use: - OpenSSL 3.4.0 diff --git a/lib/GLPI/Agent/SOAP/VMware/Host.pm b/lib/GLPI/Agent/SOAP/VMware/Host.pm index d832fab3a..8317b6ab3 100644 --- a/lib/GLPI/Agent/SOAP/VMware/Host.pm +++ b/lib/GLPI/Agent/SOAP/VMware/Host.pm @@ -425,8 +425,8 @@ sub getVirtualMachines { $vmInventory->{SERIAL} = "VMware-".join(' ', @uuid_parts[0..7]).'-'.join(' ', @uuid_parts[8..15]); } - # Glpi version MUST at least be 10.0.18 to set IPADDRESS and OPERATINGSYSTEM - if ($self->supportGlpiVersion('10.0.18')) { + # At least Glpi version 10.0.17 will include required schema to validate following fields + if ($self->supportGlpiVersion('10.0.17')) { $vmInventory->{IPADDRESS} = $machine->{summary}{guest}{ipAddress} unless empty($machine->{summary}{guest}{ipAddress}); unless (empty($machine->{summary}{guest}{guestFullName})) {