fix configuration validation for extensions' server commands

This commit is contained in:
Willy Kloucek
2022-06-02 09:57:45 +02:00
parent b5bb5ed087
commit 27b2fbe7e0
33 changed files with 47 additions and 32 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func AuthMachineCommand(cfg *config.Config) *cli.Command {
Usage: helper.SubcommandDescription(cfg.AuthMachine.Service.Name),
Category: "extensions",
Before: func(c *cli.Context) error {
if err := parser.ParseConfig(cfg); err != nil {
if err := parser.ParseConfig(cfg, true); err != nil {
fmt.Printf("%v", err)
}
cfg.AuthMachine.Commons = cfg.Commons