Skip to content

Commit 49bb485

Browse files
authored
Fix build errors
1 parent b8c09b8 commit 49bb485

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/services/grafana.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"path"
1111
"strings"
1212
"time"
13+
texttemplate "text/template"
1314

1415
httputil "github.com/argoproj/notifications-engine/pkg/util/http"
1516

@@ -70,14 +71,14 @@ func (s *grafanaService) Send(notification Notification, dest Destination) error
7071

7172
// append tags from notification grafana.tags field ..
7273
if notification.Grafana != nil && len(notification.Grafana.Tags) > 0 {
73-
notificationTags = strings.Split(notification.Grafana.Tags, "|")
74+
notificationTags := strings.Split(notification.Grafana.Tags, "|")
7475
tags = append(tags, notificationTags...)
7576
}
7677

7778
// append global tags from opts
7879
if opts.Tags != nil && len(opts.Tags) > 0 {
79-
globalTags = strings.Split(opts.Tags, "|")
80-
tags = append(tags, globalTags...)
80+
optsTags := strings.Split(opts.Tags, "|")
81+
tags = append(tags, optsTags...)
8182
}
8283

8384
ga := GrafanaAnnotation{

0 commit comments

Comments
 (0)