mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Fix error handling during client TLS config setup (#8025)
This commit is contained in:
@@ -98,7 +98,11 @@ func (c *BaseCommand) Client() (*api.Client, error) {
|
|||||||
TLSServerName: c.flagTLSServerName,
|
TLSServerName: c.flagTLSServerName,
|
||||||
Insecure: c.flagTLSSkipVerify,
|
Insecure: c.flagTLSSkipVerify,
|
||||||
}
|
}
|
||||||
config.ConfigureTLS(t)
|
|
||||||
|
// Setup TLS config
|
||||||
|
if err := config.ConfigureTLS(t); err != nil {
|
||||||
|
return nil, errors.Wrap(err, "failed to setup TLS config")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the client
|
// Build the client
|
||||||
|
|||||||
Reference in New Issue
Block a user