diff --git a/centreon-plugins/storage/hitachi/hcp/snmp/mode/volumes.pm b/centreon-plugins/storage/hitachi/hcp/snmp/mode/volumes.pm index 329fe849f..8a1b82113 100644 --- a/centreon-plugins/storage/hitachi/hcp/snmp/mode/volumes.pm +++ b/centreon-plugins/storage/hitachi/hcp/snmp/mode/volumes.pm @@ -178,8 +178,8 @@ sub manage_selection { $self->{output}->output_add(long_msg => "skipping volume '$fullname'.", debug => 1); next; } - if (defined($self->{option_results}->{filter_node_id}) && $self->{option_results}->{filter_node_id} ne '' && - $node_id !~ /$self->{option_results}->{filter_node_id}/) { + if (defined($self->{option_results}->{filter_label}) && $self->{option_results}->{filter_label} ne '' && + $label !~ /$self->{option_results}->{filter_label}/) { $self->{output}->output_add(long_msg => "skipping volume '$fullname'.", debug => 1); next; }