From 0f2afb6417727d7212d139dda466d802bc794069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Qu=C3=A9m=C3=A9ner?= Date: Fri, 23 Sep 2022 15:06:51 +0200 Subject: [PATCH] Alerting: support env variables in contact point settings when provsioning (#55666) --- pkg/services/provisioning/alerting/contact_point_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/provisioning/alerting/contact_point_types.go b/pkg/services/provisioning/alerting/contact_point_types.go index 1f80570c713..a01e3f29101 100644 --- a/pkg/services/provisioning/alerting/contact_point_types.go +++ b/pkg/services/provisioning/alerting/contact_point_types.go @@ -83,7 +83,7 @@ func (config *ReceiverV1) mapToModel(name string) (definitions.EmbeddedContactPo if len(config.Settings.Value()) == 0 { return definitions.EmbeddedContactPoint{}, fmt.Errorf("no settings are set") } - settings := simplejson.NewFromAny(config.Settings.Raw) + settings := simplejson.NewFromAny(config.Settings.Value()) cp := definitions.EmbeddedContactPoint{ UID: uid, Name: name,