Skip to content

Commit

Permalink
Fix null issue for secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Mar 17, 2024
1 parent 6c02211 commit c487cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Store/public/Get-StoreConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

$value = Get-StoreVariable -Name $Name

if ($null -eq $value) {
if (($null -eq $value) -and ((Get-SecretInfo -Vault $script:Store.SecretVaultName).Name -contains $Name)) {
$value = Get-Secret -Name $Name -AsPlainText -Vault $script:Store.SecretVaultName
}

Expand Down

0 comments on commit c487cdc

Please sign in to comment.