Update connections.pm
This commit is contained in:
parent
951576e594
commit
ca8c715004
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue