We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dfdb55 commit 2ed339dCopy full SHA for 2ed339d
lib/GLPI/Agent/SNMP/MibSupport/Ubnt.pm
@@ -40,11 +40,7 @@ sub getFirmware {
40
sub getModel {
41
my ($self) = @_;
42
43
- my $device = $self->device
44
- or return;
45
-
46
- return getCanonicalString($self->get(unifiApSystemModel))
47
- if not defined($device->{MODEL});
+ return getCanonicalString($self->get(unifiApSystemModel));
48
}
49
50
sub getSerial {
@@ -62,10 +58,7 @@ sub getSerial {
62
58
sub getMacAddress {
63
59
64
60
65
66
67
68
- return getCanonicalMacAddress($self->get(ubntWlStatApMac)) || $device->{MAC};
61
+ return getCanonicalMacAddress($self->get(ubntWlStatApMac));
69
70
71
sub run {
0 commit comments