From 329bd09f93ecbcdd10a973d8017a7d162cce6ecc Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Thu, 26 Mar 2020 18:09:51 +0000 Subject: [PATCH] Fix Auth Init bug (#1424) Co-authored-by: Ben Toogood --- config/cmd/cmd.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/cmd/cmd.go b/config/cmd/cmd.go index 49c8a359..287c085e 100644 --- a/config/cmd/cmd.go +++ b/config/cmd/cmd.go @@ -692,10 +692,7 @@ func (c *cmd) Before(ctx *cli.Context) error { authOpts = append(authOpts, auth.Provider(p(provOpts...))) } - - if len(authOpts) > 0 { - (*c.opts.Auth).Init(authOpts...) - } + (*c.opts.Auth).Init(authOpts...) if ctx.String("config") == "service" { opt := config.WithSource(configSrv.NewSource())