+ fix mode refactoring airespace

This commit is contained in:
garnier-quentin 2016-01-06 16:20:43 +01:00
parent 6485d681da
commit 710fbf9789
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ sub manage_selection {
my ($self, %options) = @_;
$self->{ap} = {};
$self->{results} = $self->{snmp}->get_multiple_table(oids => [ { oid => $oid_bsnAPName },
$self->{results} = $options{snmp}->get_multiple_table(oids => [ { oid => $oid_bsnAPName },
{ oid => $oid_bsnAPIfInterferencePower },
{ oid => $oid_bsnAPIfInterferenceUtilization },
],

View File

@ -140,7 +140,7 @@ sub run_global {
my $obj = $_->{obj};
next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' &&
$_->{name} !~ /$self->{option_results}->{filter_counters}/);
$_->{label} !~ /$self->{option_results}->{filter_counters}/);
$obj->set(instance => $options{config}->{name});
@ -205,7 +205,7 @@ sub run_instances {
my $obj = $_->{obj};
next if (defined($self->{option_results}->{filter_counters}) && $self->{option_results}->{filter_counters} ne '' &&
$_->{name} !~ /$self->{option_results}->{filter_counters}/);
$_->{label} !~ /$self->{option_results}->{filter_counters}/);
$obj->set(instance => $id);