config/cmd: don't fatally error if auth account cannot be generated (#1824)
This commit is contained in:
parent
7355455020
commit
2e04fcd718
@ -668,7 +668,9 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
|||||||
|
|
||||||
// verify the auth's service account
|
// verify the auth's service account
|
||||||
if err := authutil.Verify(*c.opts.Auth); err != nil {
|
if err := authutil.Verify(*c.opts.Auth); err != nil {
|
||||||
logger.Fatalf("Error generating auth account: %v", err)
|
if logger.V(logger.DebugLevel, logger.DefaultLogger) {
|
||||||
|
logger.Debugf("Auth [%v] Error generating auth account: %v", (*c.opts.Auth), err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup broker options.
|
// Setup broker options.
|
||||||
|
@ -25,7 +25,9 @@ func Verify(a auth.Auth) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if logger.V(logger.DebugLevel, logger.DefaultLogger) {
|
||||||
logger.Debugf("Auth [%v] Generated an auth account", a.String())
|
logger.Debugf("Auth [%v] Generated an auth account", a.String())
|
||||||
|
}
|
||||||
|
|
||||||
accID = acc.ID
|
accID = acc.ID
|
||||||
accSecret = acc.Secret
|
accSecret = acc.Secret
|
||||||
|
Loading…
Reference in New Issue
Block a user