mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +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
|
||||
vaultCAVerify, err = strconv.ParseBool(verifyCA)
|
||||
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)
|
||||
}
|
||||
vaultConfig[api.EnvVaultInsecure] = !vaultCAVerify
|
||||
|
Loading…
Reference in New Issue
Block a user