mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
util: use %w when forwarding an error
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
eb63e796a8
commit
7824cb5ed7
@ -136,7 +136,7 @@ func InitVaultKMS(kmsID string, config, secrets map[string]string) (EncryptionKM
|
|||||||
var vaultCAVerify bool
|
var vaultCAVerify bool
|
||||||
vaultCAVerify, err = strconv.ParseBool(verifyCA)
|
vaultCAVerify, err = strconv.ParseBool(verifyCA)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to parse 'vaultCAVerify' for vault <%s> kms config: %s",
|
return nil, fmt.Errorf("failed to parse 'vaultCAVerify' for vault <%s> kms config: %w",
|
||||||
kmsID, err)
|
kmsID, err)
|
||||||
}
|
}
|
||||||
vaultConfig[api.EnvVaultInsecure] = !vaultCAVerify
|
vaultConfig[api.EnvVaultInsecure] = !vaultCAVerify
|
||||||
|
Loading…
Reference in New Issue
Block a user