fix filter

This commit is contained in:
garnier-quentin 2020-01-13 16:41:38 +01:00
parent 86247c15bc
commit d000c37bc2
1 changed files with 2 additions and 2 deletions

View File

@ -145,8 +145,8 @@ sub manage_selection {
next if (defined($self->{option_results}->{memory}) && defined($last_time) && $last_time > $create_time); next if (defined($self->{option_results}->{memory}) && defined($last_time) && $last_time > $create_time);
if (defined($self->{option_results}->{filter_msg}) && $self->{option_results}->{filter_msg} ne '' && if (defined($self->{option_results}->{filter_msg}) && $self->{option_results}->{filter_msg} ne '' &&
$result->{radwllMilOduAgnLastEventsText} !~ /$self->{option_results}->{perleEntityAlarmDescr}/) { $result->{perleEntityAlarmDescr} !~ /$self->{option_results}->{filter_msg}/) {
$self->{output}->output_add(long_msg => "skipping '" . $result->{radwllMilOduAgnLastEventsText} . "': no matching filter.", debug => 1); $self->{output}->output_add(long_msg => "skipping '" . $result->{perleEntityAlarmDescr} . "': no matching filter.", debug => 1);
next; next;
} }