Update cloud/azure/database/mysql/mode/storage.pm
Co-authored-by: itoussies <65223458+itoussies@users.noreply.github.com>
This commit is contained in:
parent
b2159b0a9e
commit
9a16c86ba2
|
@ -146,10 +146,10 @@ sub check_options {
|
||||||
|
|
||||||
my $metrics_mapping_transformed;
|
my $metrics_mapping_transformed;
|
||||||
foreach my $metric_type (@{$resource_mapping->{$resource_type}}) {
|
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 ''
|
next if (defined($self->{option_results}->{filter_metric}) && $self->{option_results}->{filter_metric} ne ''
|
||||||
&& $metric !~ /$self->{option_results}->{filter_metric}/);
|
&& $metric !~ /$self->{option_results}->{filter_metric}/);
|
||||||
push @{$self->{az_metrics}}, $metric;
|
push @{$self->{az_metrics}}, $metric;
|
||||||
|
|
Loading…
Reference in New Issue