Skip to content

Commit

Permalink
fix: Fix rare error when checking manufacturer on not defined model
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Nov 23, 2023
1 parent 4643fd3 commit eff868f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GLPI/Agent/SNMP/Device.pm
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ sub setModel {
}

# reset manufacturer by rule as real vendor based on first model word
if (exists $self->{MODEL}) {
unless (empty($self->{MODEL})) {
my ($first_word) = $self->{MODEL} =~ /(\S+)/;
my $result = $sysmodel_first_word{lc($first_word)};
if ($result && $result->{manufacturer}) {
Expand Down

0 comments on commit eff868f

Please sign in to comment.