From 6c43329ccfd32e7010f01762d9da4eabab29d5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ctvrtka?= Date: Tue, 3 Dec 2024 22:08:37 +0100 Subject: [PATCH] PMM-5086-12634 Fix RDS nil handling. --- managed/services/agents/rds.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/managed/services/agents/rds.go b/managed/services/agents/rds.go index dcd5d1ba70..1be5fe70ee 100644 --- a/managed/services/agents/rds.go +++ b/managed/services/agents/rds.go @@ -77,10 +77,6 @@ func rdsExporterConfig(pairs map[*models.Node]*models.Agent, redactMode redactMo return nil, err } - if exporter.AWSOptions == nil { - exporter.AWSOptions = &models.AWSOptions{} - } - config.Instances = append(config.Instances, rdsInstance{ Region: pointer.GetString(node.Region), Instance: node.Address,