Merge pull request #2802 from matoy/patch-6

fix(plugin): Azure DB for MySQL
This commit is contained in:
itoussies 2021-05-19 16:06:02 +02:00 committed by GitHub
commit 0622a40076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ sub check_options {
$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;

View File

@ -112,7 +112,7 @@ sub check_options {
$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;

View File

@ -149,7 +149,7 @@ sub check_options {
$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;