mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-12 18:29:05 +08:00
rbd: use vaultAuthPath
variable name in error msg
Before the change, the error msg was the following: ``` failed to set VAULT_AUTH_MOUNT_PATH in Vault config: path is empty ``` `vaultAuthPath` is the actual variable name set by the user. The error message will now be the following: ``` failed to set "vaultAuthPath" in vault config: path is empty ``` Signed-off-by: Rakshith R <rar@redhat.com> (cherry picked from commit bd57feb26e19a9e6db1ecfa7a8a07521277329eb)
This commit is contained in:
parent
5c0f9d565e
commit
272182a588
@ -352,7 +352,7 @@ func initVaultKMS(args ProviderInitArgs) (EncryptionKMS, error) {
|
|||||||
|
|
||||||
kms.vaultConfig[vault.AuthMountPath], err = detectAuthMountPath(vaultAuthPath)
|
kms.vaultConfig[vault.AuthMountPath], err = detectAuthMountPath(vaultAuthPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to set %s in Vault config: %w", vault.AuthMountPath, err)
|
return nil, fmt.Errorf("failed to set \"vaultAuthPath\" in Vault config: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
vaultRole := vaultDefaultRole
|
vaultRole := vaultDefaultRole
|
||||||
|
Loading…
x
Reference in New Issue
Block a user