diff --git a/cloud/azure/database/mysql/mode/replication.pm b/cloud/azure/database/mysql/mode/replication.pm index 99497d770..24bade192 100644 --- a/cloud/azure/database/mysql/mode/replication.pm +++ b/cloud/azure/database/mysql/mode/replication.pm @@ -109,7 +109,7 @@ sub check_options { my $metrics_mapping_transformed; foreach my $metric_type (@{$resource_mapping->{$resource_type}}) { - ${metrics_mapping_transformed}->{$metric_type} = $self->{metrics_mapping}->{$metric_type}; + $metrics_mapping_transformed->{$metric_type} = $self->{metrics_mapping}->{$metric_type}; } foreach my $metric (keys %{$metrics_mapping_transformed}) {