diff --git a/centreon-plugins/cloud/azure/database/mysql/mode/replication.pm b/centreon-plugins/cloud/azure/database/mysql/mode/replication.pm index 7a56d4ad6..00c7328b9 100644 --- a/centreon-plugins/cloud/azure/database/mysql/mode/replication.pm +++ b/centreon-plugins/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->{resource_mapping}->{$metric_type}; + $self->{metrics_mapping_transformed}->{$metric_type} = $self->{metrics_mapping}->{$metric_type}; } foreach my $metric (keys %{$self->{metrics_mapping_transformed}}) {