From b421953ee061df7b793bc852481d59f5ffa1dba8 Mon Sep 17 00:00:00 2001 From: Mahan Zendedel DH Date: Thu, 14 Nov 2024 13:29:15 +0400 Subject: [PATCH] fix: kvv2 --- pkg/vault/hashicorp_vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vault/hashicorp_vault.go b/pkg/vault/hashicorp_vault.go index f49f803..6a83182 100644 --- a/pkg/vault/hashicorp_vault.go +++ b/pkg/vault/hashicorp_vault.go @@ -207,7 +207,7 @@ func NewHashiCorpVaultSecretHandler(ctx context.Context, logger *zap.Logger, con } func (a *HashiCorpVaultSecretHandler) GetSecret(ctx context.Context, secretId string) (string, error) { - secret, err := a.client.KVv2(secretId).Get(ctx, secretId) + secret, err := a.client.KVv2(secretMountPath).Get(ctx, secretId) if err != nil { a.logger.Error("failed to get secret", zap.Error(err)) return "", err