+ perl 5.10 & el6 compatibility (#949)
Fix https://github.com/centreon/centreon-plugins/issues/945
This commit is contained in:
parent
4ce3365a7e
commit
ef995435b7
|
@ -182,7 +182,7 @@ sub manage_selection {
|
||||||
period => $self->{aws_period},
|
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}));
|
next if (!defined($metric_results{$instance}->{$metric}->{average}));
|
||||||
|
|
||||||
$self->{metric}->{$instance}->{display} = $instance;
|
$self->{metric}->{$instance}->{display} = $instance;
|
||||||
|
|
Loading…
Reference in New Issue