Update cloud/azure/database/mysql/mode/storage.pm

Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>
This commit is contained in:
matoy 2021-05-19 15:08:27 +02:00 committed by GitHub
parent b2159b0a9e
commit 9a16c86ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -146,10 +146,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;