From bd57feb26e19a9e6db1ecfa7a8a07521277329eb Mon Sep 17 00:00:00 2001 From: Rakshith R Date: Wed, 4 May 2022 16:53:51 +0530 Subject: [PATCH] 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 --- internal/kms/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/kms/vault.go b/internal/kms/vault.go index 14f9ff974..d529c2a88 100644 --- a/internal/kms/vault.go +++ b/internal/kms/vault.go @@ -352,7 +352,7 @@ func initVaultKMS(args ProviderInitArgs) (EncryptionKMS, error) { kms.vaultConfig[vault.AuthMountPath], err = detectAuthMountPath(vaultAuthPath) 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