From a564a121a6afe68131179d512fffc4c85f2bf7f1 Mon Sep 17 00:00:00 2001 From: Googlom <36107508+Googlom@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:43:24 +0500 Subject: [PATCH] fix vaultDisableOverwrite handling (#4990) --- pkg/config/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/vault.go b/pkg/config/vault.go index a65ca174f0..8803268de6 100644 --- a/pkg/config/vault.go +++ b/pkg/config/vault.go @@ -138,7 +138,7 @@ func resolveAllVaultReferences(config *StepConfig, client VaultClient, params [] func resolveVaultReference(ref *ResourceReference, config *StepConfig, client VaultClient, param StepParameters) { vaultDisableOverwrite, _ := config.Config["vaultDisableOverwrite"].(bool) - if _, ok := config.Config[param.Name].(string); vaultDisableOverwrite && ok { + if paramValue, _ := config.Config[param.Name].(string); vaultDisableOverwrite && paramValue != "" { log.Entry().Debugf("Not fetching '%s' from Vault since it has already been set", param.Name) return }