From 936b3d832714feddb1406cda27209ddf81633c01 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 23 Sep 2022 09:22:19 -0400 Subject: [PATCH] Alerting: support env variables in contact point settings when provsioning (#55666) (#55680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 0f2afb6417727d7212d139dda466d802bc794069) Co-authored-by: Jean-Philippe Quéméner --- 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,