+ perl 5.10 & el6 compatibility (#949)

Fix https://github.com/centreon/centreon-plugins/issues/945
This commit is contained in:
Simon Bomm 2018-04-11 09:11:29 +02:00 committed by GitHub
parent 4ce3365a7e
commit ef995435b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ sub manage_selection {
period => $self->{aws_period},
);
foreach my $metric (keys $metric_results{$instance}) {
foreach my $metric (keys %{$metric_results{$instance}}) {
next if (!defined($metric_results{$instance}->{$metric}->{average}));
$self->{metric}->{$instance}->{display} = $instance;