From 32d6f65303ac3996b50b0fe609e3b2a279b3112e Mon Sep 17 00:00:00 2001 From: cgagnaire Date: Tue, 10 Apr 2018 23:17:34 +0200 Subject: [PATCH] fix snapmirror modes debug output (#948) --- .../storage/netapp/restapi/mode/snapmirrorstatus.pm | 2 +- centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm index 35b89ab13..4ced83a21 100644 --- a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm +++ b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorstatus.pm @@ -135,7 +135,7 @@ sub manage_selection { foreach my $snapmirror (@{$result}) { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $snapmirror->{source_location} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{name} . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{source_location} . "': no matching filter name.", debug => 1); next; } diff --git a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm index aa49bbb5d..3225524d5 100644 --- a/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm +++ b/centreon-plugins/storage/netapp/restapi/mode/snapmirrorusage.pm @@ -97,7 +97,7 @@ sub manage_selection { foreach my $snapmirror (@{$result}) { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $snapmirror->{source_location} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{name} . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $snapmirror->{source_location} . "': no matching filter name.", debug => 1); next; }