+ Fix #1509
This commit is contained in:
parent
31525f251b
commit
2084cef531
|
@ -57,7 +57,8 @@ sub snmp_execute {
|
||||||
oids => [{ oid => $mapping->{branch_sensors}->{hwgste} }, { oid => $mapping->{branch_sensors}->{hwgste2} }]
|
oids => [{ oid => $mapping->{branch_sensors}->{hwgste} }, { oid => $mapping->{branch_sensors}->{hwgste2} }]
|
||||||
);
|
);
|
||||||
$self->{branch} = 'hwgste';
|
$self->{branch} = 'hwgste';
|
||||||
if (defined($self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }) && scalar($self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }) > 0) {
|
if (defined($self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }) &&
|
||||||
|
scalar(keys %{$self->{results}->{ $mapping->{branch_sensors}->{hwgste2} }}) > 0) {
|
||||||
$self->{branch} = 'hwgste2';
|
$self->{branch} = 'hwgste2';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue