fix ocis config parsing for subcommands
This commit is contained in:
@@ -16,12 +16,13 @@ func NotificationsCommand(cfg *config.Config) *cli.Command {
|
||||
Name: "notifications",
|
||||
Usage: "start notifications service",
|
||||
Category: "extensions",
|
||||
Before: func(ctx *cli.Context) error {
|
||||
err := parser.ParseConfig(cfg)
|
||||
if err != nil {
|
||||
Before: func(c *cli.Context) error {
|
||||
if err := parser.ParseConfig(cfg); err != nil {
|
||||
fmt.Printf("%v", err)
|
||||
return err
|
||||
}
|
||||
return err
|
||||
cfg.Notifications.Commons = cfg.Commons
|
||||
return nil
|
||||
},
|
||||
Subcommands: command.GetCommands(cfg.Notifications),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user