From 15cea42b938d5c5195726b6fc80c5bfa6f96fa49 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Fri, 6 Dec 2024 16:45:06 +0100 Subject: [PATCH] Revert "fix: Filter invalid firmware date on HP peripherals" This reverts commit f7d07fde8277925d1deebfb1d53432c7d89f8113. --- Changes | 1 - lib/GLPI/Agent/SNMP/MibSupport/HPNetPeripheral.pm | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Changes b/Changes index 7b0875cd1..469dc6cdd 100644 --- a/Changes +++ b/Changes @@ -40,7 +40,6 @@ netdiscovery/netinventory: * fix #769: Added Intelbras devices support * don't send discovery xml to server target for remoteinventory task event initiated from toolbox -* fix #781: Filter invalid firmware date on HP peripherals deploy: * Fix checks on command run and clarify reason of success or failure. This fixes diff --git a/lib/GLPI/Agent/SNMP/MibSupport/HPNetPeripheral.pm b/lib/GLPI/Agent/SNMP/MibSupport/HPNetPeripheral.pm index c03c06af4..6c9852c25 100644 --- a/lib/GLPI/Agent/SNMP/MibSupport/HPNetPeripheral.pm +++ b/lib/GLPI/Agent/SNMP/MibSupport/HPNetPeripheral.pm @@ -90,14 +90,7 @@ sub getFirmware { sub getFirmwareDate { my ($self) = @_; - my $datecode = $self->_getClean(fw_rom_datecode) - or return; - - # Extract date from datecode with required format - my ($date) = $datecode =~ /$^([0-9]{4}-[0-9]{2}-[0-9]{2})/ - or return; - - return $date; + return $self->_getClean(fw_rom_datecode); } sub getSerial {