Update connections.pm

This commit is contained in:
itoussies 2021-05-19 15:58:25 +02:00 committed by GitHub
parent 951576e594
commit ca8c715004
1 changed files with 2 additions and 2 deletions

View File

@ -123,10 +123,10 @@ sub check_options {
my $metrics_mapping_transformed;
foreach my $metric_type (@{$resource_mapping->{$resource_type}}) {
$self->{metrics_mapping_transformed}->{$metric_type} = $self->{metrics_mapping}->{$metric_type};
$metrics_mapping_transformed->{$metric_type} = $self->{metrics_mapping}->{$metric_type};
}
foreach my $metric (keys %{$self->{metrics_mapping_transformed}}) {
foreach my $metric (keys %{$metrics_mapping_transformed}) {
next if (defined($self->{option_results}->{filter_metric}) && $self->{option_results}->{filter_metric} ne ''
&& $metric !~ /$self->{option_results}->{filter_metric}/);
push @{$self->{az_metrics}}, $metric;