diff --git a/storage/oracle/zs/snmp/mode/shareusage.pm b/storage/oracle/zs/snmp/mode/shareusage.pm index 79b9f9441..c89fe20d9 100644 --- a/storage/oracle/zs/snmp/mode/shareusage.pm +++ b/storage/oracle/zs/snmp/mode/shareusage.pm @@ -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}}));