mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-17 23:41:56 +01:00
Fix error handling during client TLS config setup (#8025)
This commit is contained in:
parent
39455f38a8
commit
488be87f67
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user