Merge pull request #2802 from matoy/patch-6
fix(plugin): Azure DB for MySQL
This commit is contained in:
commit
0622a40076
|
@ -126,7 +126,7 @@ sub check_options {
|
||||||
$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;
|
||||||
|
|
|
@ -112,7 +112,7 @@ sub check_options {
|
||||||
$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;
|
||||||
|
|
|
@ -149,7 +149,7 @@ sub check_options {
|
||||||
$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