fix snapmirror modes debug output (#948)

This commit is contained in:
cgagnaire 2018-04-10 23:17:34 +02:00 committed by Simon Bomm
parent e91207c13b
commit 32d6f65303
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}