Skip to content

Commit

Permalink
fix(notify/init): typo
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Delberghe <open-source@orandin.fr>
  • Loading branch information
orandin committed Jul 25, 2022
1 parent 7089540 commit 9e5a10b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/notify/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"

"github.com/ovh/configstore"

"github.com/ovh/utask"
"github.com/ovh/utask/pkg/notify"
"github.com/ovh/utask/pkg/notify/opsgenie"
Expand All @@ -15,7 +16,7 @@ import (
)

const (
errRetrieveCfg string = "Failed to retrieve cfg"
errRetrieveCfg string = "failed to retrieve cfg"
)

// Init aims to inject user defined cfg around notify
Expand Down Expand Up @@ -46,7 +47,7 @@ func Init(store *configstore.Store) error {
f.Timeout,
)
if err != nil {
return fmt.Errorf("Failed to instantiate tat notification sender: %s", err)
return fmt.Errorf("failed to instantiate opsgenie notification sender: %s", err)
}
notify.RegisterSender(name, ogns, ncfg.DefaultNotificationStrategy, ncfg.TemplateNotificationStrategies)

Expand All @@ -62,7 +63,7 @@ func Init(store *configstore.Store) error {
f.Topic,
)
if err != nil {
return fmt.Errorf("Failed to instantiate tat notification sender: %s", err)
return fmt.Errorf("failed to instantiate tat notification sender: %s", err)
}
notify.RegisterSender(name, tn, ncfg.DefaultNotificationStrategy, ncfg.TemplateNotificationStrategies)

Expand All @@ -83,7 +84,7 @@ func Init(store *configstore.Store) error {
notify.RegisterSender(name, sn, ncfg.DefaultNotificationStrategy, ncfg.TemplateNotificationStrategies)

default:
return fmt.Errorf("Failed to identify backend type: %s", ncfg.Type)
return fmt.Errorf("failed to identify backend type: %s", ncfg.Type)
}
}

Expand Down

0 comments on commit 9e5a10b

Please sign in to comment.