Skip to content

Commit 2ed339d

Browse files
Update Ubnt.pm
1 parent 9dfdb55 commit 2ed339d

File tree

1 file changed

+2
-9
lines changed
  • lib/GLPI/Agent/SNMP/MibSupport

1 file changed

+2
-9
lines changed

lib/GLPI/Agent/SNMP/MibSupport/Ubnt.pm

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ sub getFirmware {
4040
sub getModel {
4141
my ($self) = @_;
4242

43-
my $device = $self->device
44-
or return;
45-
46-
return getCanonicalString($self->get(unifiApSystemModel))
47-
if not defined($device->{MODEL});
43+
return getCanonicalString($self->get(unifiApSystemModel));
4844
}
4945

5046
sub getSerial {
@@ -62,10 +58,7 @@ sub getSerial {
6258
sub getMacAddress {
6359
my ($self) = @_;
6460

65-
my $device = $self->device
66-
or return;
67-
68-
return getCanonicalMacAddress($self->get(ubntWlStatApMac)) || $device->{MAC};
61+
return getCanonicalMacAddress($self->get(ubntWlStatApMac));
6962
}
7063

7164
sub run {

0 commit comments

Comments
 (0)