+ fix filter project oracle zs snmp

This commit is contained in:
garnier-quentin 2017-03-15 13:54:36 +01:00
parent d342cd2e96
commit e0dbcd0684
1 changed files with 5 additions and 0 deletions

View File

@ -191,6 +191,11 @@ sub manage_selection {
$self->{output}->output_add(long_msg => "skipping '" . $result->{sunAkShareName} . "': no matching filter.", debug => 1);
next;
}
if (defined($self->{option_results}->{filter_project}) && $self->{option_results}->{filter_project} ne '' &&
$result->{sunAkShareProject} !~ /$self->{option_results}->{filter_project}/) {
$self->{output}->output_add(long_msg => "skipping '" . $result->{sunAkShareName} . "': no matching filter.", debug => 1);
next;
}
$self->{project}->{$result->{sunAkShareProject}} = { total => 0, used => 0, display => $result->{sunAkShareProject} }
if (!defined($self->{project}->{$result->{sunAkShareProject}}));