Explorar o código

Send test notification fixed

utkarshcmu %!s(int64=9) %!d(string=hai) anos
pai
achega
610ea090dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)