Skip to content

Commit

Permalink
🩹 [Patch]: Update context retrieval logic in Get-Context to use wil…
Browse files Browse the repository at this point in the history
…dcard matching for context IDs
  • Loading branch information
MariusStorhaug committed Nov 22, 2024
1 parent f29bb41 commit da31907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/public/Context/Get-Context.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ filter Get-Context {
return
} else {
Write-Verbose "Retrieving context [$ID] from [$($contextVault.Name)]"
$contexts = Get-SecretInfo -Vault $contextVault.Name | Where-Object { $_.Name -eq "$($script:Config.SecretPrefix)$ID" }
$contexts = Get-SecretInfo -Vault $contextVault.Name | Where-Object { $_.Name -like "$($script:Config.SecretPrefix)$ID" }
}

Write-Verbose "Found [$($contexts.Count)] contexts in [$($contextVault.Name)]"
Expand Down

0 comments on commit da31907

Please sign in to comment.