fix panic
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
fb665f0d99
commit
fbdb6e332b
3
vault.go
3
vault.go
@ -80,8 +80,9 @@ func (c *vaultConfig) Init(opts ...config.Option) error {
|
|||||||
})
|
})
|
||||||
if err != nil && !c.opts.AllowFail {
|
if err != nil && !c.opts.AllowFail {
|
||||||
return err
|
return err
|
||||||
|
} else if err == nil {
|
||||||
|
token = rsp.Auth.ClientToken
|
||||||
}
|
}
|
||||||
token = rsp.Auth.ClientToken
|
|
||||||
}
|
}
|
||||||
cli.SetToken(token)
|
cli.SetToken(token)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user