Skip to content

Commit

Permalink
Revert "fix: Filter invalid firmware date on HP peripherals"
Browse files Browse the repository at this point in the history
This reverts commit f7d07fd.
  • Loading branch information
g-bougard committed Dec 6, 2024
1 parent 6308517 commit 15cea42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 1 addition & 8 deletions lib/GLPI/Agent/SNMP/MibSupport/HPNetPeripheral.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 15cea42

Please sign in to comment.