Przeglądaj źródła

Send test notification fixed

utkarshcmu 9 lat temu
rodzic
commit
610ea090dc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      pkg/services/alerting/notifiers/pagerduty.go

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

@@ -55,7 +55,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
 		bodyJSON.Set("client_url", ruleUrl)
 
 		if evalContext.ImagePublicUrl != "" {
-			var contexts []interface{}
+			contexts := make([]interface{}, 1)
 			imageJSON := simplejson.New()
 			imageJSON.Set("type", "image")
 			imageJSON.Set("src", evalContext.ImagePublicUrl)