Skip to content

Commit

Permalink
Update pkg/alertmanager/amcfg.go
Browse files Browse the repository at this point in the history
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
  • Loading branch information
Azanul and JoaoBraveCoding committed Jun 16, 2023
1 parent e0a942e commit 410345a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/alertmanager/amcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ func (cb *configBuilder) convertReceiver(ctx context.Context, in *monitoringv1al
var discordConfigs []*discordConfig
if l := len(in.DiscordConfigs); l > 0 {
discordConfigs = make([]*discordConfig, l)
for i := range in.SlackConfigs {
for i := range in.DiscordConfigs {
receiver, err := cb.convertDiscordConfig(ctx, in.DiscordConfigs[i], crKey)
if err != nil {
return nil, errors.Wrapf(err, "DiscordConfig[%d]", i)
Expand Down

0 comments on commit 410345a

Please sign in to comment.