Skip to content

Commit 786e285

Browse files
committed
Fix custom notification message
1 parent ca7ccd5 commit 786e285

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cmd/root.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,19 @@ func sendNotification(_ *cobra.Command, _ []string) {
140140

141141
switch notificationType {
142142
case icingadsl.Custom:
143-
// If ticket exists, adds message to existing ticket
143+
// If ticket exists, adds article to existing ticket
144144
notificationErr = handleCustomNotification(ctx, c, ticket)
145145
case icingadsl.Acknowledgement:
146-
// If ticket exists, adds message to existing ticket
146+
// If ticket exists, adds article to existing ticket
147147
notificationErr = handleAcknowledgeNotification(ctx, c, ticket)
148148
case icingadsl.Problem:
149149
// Opens a new ticket if none exists
150-
// If one exists, adds message to existing ticket
150+
// If one exists, adds article to existing ticket
151151
notificationErr = handleProblemNotification(ctx, c, ticket)
152152
case icingadsl.Recovery:
153153
// Closes a ticket if one exists
154-
// If ticket is open, adds message to existing ticket
155-
// If ticket is closed, reopens the ticket with the message
154+
// If ticket is open, adds article to existing ticket
155+
// If ticket is closed, reopens the ticket with the article
156156
notificationErr = handleRecoveryNotification(ctx, c, ticket)
157157
case icingadsl.DowntimeStart:
158158
// Currently no implemented
@@ -291,8 +291,8 @@ func handleCustomNotification(ctx context.Context, c *client.Client, ticket zamm
291291

292292
a := zammad.Article{
293293
TicketID: ticket.ID,
294-
Subject: "Recovery",
295-
Body: fmt.Sprintf("Recovery for: %s %s", cliConfig.IcingaCheckState, cliConfig.IcingaCheckOutput),
294+
Subject: "Custom",
295+
Body: fmt.Sprintf("Custom for: %s %s", cliConfig.IcingaCheckState, cliConfig.IcingaCheckOutput),
296296
ContentType: "text/html",
297297
Type: "web",
298298
Internal: true,

0 commit comments

Comments
 (0)