Преглед изворни кода

Merge pull request #7195 from theisenmark/webhook-username

Fix webhook username mismatch
Carl Bergquist пре 9 година
родитељ
комит
edf868d46b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/services/alerting/notifiers/webhook.go

+ 1 - 1
pkg/services/alerting/notifiers/webhook.go

@@ -50,7 +50,7 @@ func NewWebHookNotifier(model *m.AlertNotification) (alerting.Notifier, error) {
 	return &WebhookNotifier{
 		NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings),
 		Url:          url,
-		User:         model.Settings.Get("user").MustString(),
+		User:         model.Settings.Get("username").MustString(),
 		Password:     model.Settings.Get("password").MustString(),
 		HttpMethod:   model.Settings.Get("httpMethod").MustString("POST"),
 		log:          log.New("alerting.notifier.webhook"),