mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: support env variables in contact point settings when provsioning (#55666)
This commit is contained in:
committed by
GitHub
parent
717e9b0a34
commit
0f2afb6417
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user