Skip to content

Commit

Permalink
fix vaultDisableOverwrite handling (SAP#4990)
Browse files Browse the repository at this point in the history
  • Loading branch information
Googlom authored Jul 23, 2024
1 parent 5809632 commit a564a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a564a12

Please sign in to comment.