Skip to content

Commit

Permalink
[notifications] fix segfault because url is not loaded (#2679)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceJJones committed Dec 21, 2023
1 parent 162768b commit bc9bfa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/crowdsec-cli/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func (cli cliNotifications) NewCommand() *cobra.Command {
if err := require.LAPI(csConfig); err != nil {
return err
}
if err := csConfig.LoadAPIClient(); err != nil {
return fmt.Errorf("loading api client: %w", err)
}
if err := require.Notifications(csConfig); err != nil {
return err
}
Expand Down

0 comments on commit bc9bfa8

Please sign in to comment.