Fix Auth Init bug (#1424)

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood 2020-03-26 18:09:51 +00:00 committed by GitHub
parent 4648fd0d09
commit 329bd09f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())