Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (c *SigmaConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
defaultUrl, _ := url.Parse("https://online.sigmasms.ru/api/sendings")
c.URL = &URL{URL: defaultUrl}
}
if string(c.APIKey) == "" {
if c.APIKey == "" {
return fmt.Errorf("api_key must be configured")
}
if c.NotificationType == "" {
Expand Down
1 change: 0 additions & 1 deletion notify/sigma/sigma.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
Text: tmplText(n.conf.Text),
},
}

body, err := json.Marshal(msg)
if err != nil {
return false, err
Expand Down