diff --git a/centreon-plugins/cloud/aws/health/mode/events.pm b/centreon-plugins/cloud/aws/health/mode/events.pm index cb4aa63bb..fa23008d5 100644 --- a/centreon-plugins/cloud/aws/health/mode/events.pm +++ b/centreon-plugins/cloud/aws/health/mode/events.pm @@ -102,7 +102,7 @@ sub check_options { foreach my $option (@{$self->{option_results}->{'filter_' . $_}}) { next if ($option eq ''); - $self->{filter_options}->{'filter_' . $_} = [] if (!defined($self->{'filter_' . $_})); + $self->{filter_options}->{'filter_' . $_} = [] if (!defined($self->{filter_options}->{'filter_' . $_})); push @{$self->{filter_options}->{'filter_' . $_}}, $option; } }