From 6502320a88b35d54f01287727cf1333698d721e2 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 13 Feb 2019 13:37:01 +0100 Subject: [PATCH] Fix #1390 --- centreon/common/fortinet/fortigate/mode/vdomcpu.pm | 2 +- centreon/common/fortinet/fortigate/mode/vdommemory.pm | 2 +- centreon/common/fortinet/fortigate/mode/vdomsession.pm | 2 +- centreon/common/fortinet/fortigate/mode/vdomstate.pm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/centreon/common/fortinet/fortigate/mode/vdomcpu.pm b/centreon/common/fortinet/fortigate/mode/vdomcpu.pm index 3afb668a7..b664cde2f 100644 --- a/centreon/common/fortinet/fortigate/mode/vdomcpu.pm +++ b/centreon/common/fortinet/fortigate/mode/vdomcpu.pm @@ -89,7 +89,7 @@ sub manage_selection { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $result->{fgVdEntName} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $result->{fgVdEntName} . "': no matching filter name.", debug => 1); next; } diff --git a/centreon/common/fortinet/fortigate/mode/vdommemory.pm b/centreon/common/fortinet/fortigate/mode/vdommemory.pm index e2d00a028..89d03ad6c 100644 --- a/centreon/common/fortinet/fortigate/mode/vdommemory.pm +++ b/centreon/common/fortinet/fortigate/mode/vdommemory.pm @@ -89,7 +89,7 @@ sub manage_selection { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $result->{fgVdEntName} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $result->{fgVdEntName} . "': no matching filter name.", debug => 1); next; } diff --git a/centreon/common/fortinet/fortigate/mode/vdomsession.pm b/centreon/common/fortinet/fortigate/mode/vdomsession.pm index 1195459f8..b3d9acfa2 100644 --- a/centreon/common/fortinet/fortigate/mode/vdomsession.pm +++ b/centreon/common/fortinet/fortigate/mode/vdomsession.pm @@ -99,7 +99,7 @@ sub manage_selection { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $result->{fgVdEntName} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $result->{fgVdEntName} . "': no matching filter name.", debug => 1); next; } diff --git a/centreon/common/fortinet/fortigate/mode/vdomstate.pm b/centreon/common/fortinet/fortigate/mode/vdomstate.pm index e38cf3bf8..7f9b775d9 100644 --- a/centreon/common/fortinet/fortigate/mode/vdomstate.pm +++ b/centreon/common/fortinet/fortigate/mode/vdomstate.pm @@ -120,7 +120,7 @@ sub manage_selection { if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $result->{fgVdEntName} !~ /$self->{option_results}->{filter_name}/) { - $self->{output}->output_add(long_msg => "skipping '" . $name . "': no matching filter name.", debug => 1); + $self->{output}->output_add(long_msg => "skipping '" . $result->{fgVdEntName} . "': no matching filter name.", debug => 1); next; }