fix elasticsearch nodestatistics filter-name

Fixes #1631
This commit is contained in:
Colin Gagnaire 2019-09-10 09:50:47 +02:00
parent b751711200
commit f10d5216d7
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ sub manage_selection {
foreach my $node (keys %{$nodes_stats->{nodes}}) {
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&
$node !~ /$self->{option_results}->{filter_name}/) {
$self->{output}->output_add(long_msg => "skipping '" . $node . "': no matching filter.", debug => 1);
$nodes_stats->{nodes}->{$node}->{name} !~ /$self->{option_results}->{filter_name}/) {
$self->{output}->output_add(long_msg => "skipping '" . $nodes_stats->{nodes}->{$node}->{name} . "': no matching filter.", debug => 1);
next;
}