Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gmauleon committed May 16, 2019
1 parent 91ed515 commit 5e74494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (hook *WebHook) processAlerts() {
host = hook.config.ZabbixHostDefault
}

// Send alerts only if a host annotation is present or configuration is not nill
// Send alerts only if a host annotation is present or configuration for default host is not empty
if host != "" {
key := fmt.Sprintf("%s.%s", hook.config.ZabbixKeyPrefix, strings.ToLower(a.Labels["alertname"]))
value := "0"
Expand Down

0 comments on commit 5e74494

Please sign in to comment.