Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Dec 7, 2024
1 parent 305ddcf commit a0a1851
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/functions/private/Get-ContextInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@
process {
Write-Debug "Retrieving all context info from [$vaultName]"

Get-SecretInfo -Vault $vaultName -Verbose:$false -Name "$secretPrefix*"
Get-SecretInfo -Vault $vaultName -Verbose:$false -Name "$secretPrefix*" | ForEach-Object {
[pscustomobject]@{
Name = $_.Name -replace "^$secretPrefix"
Metadata = $_.Metadata
Type = $_.Type
VaultName = $_.VaultName
}
}
}

end {
Expand Down

0 comments on commit a0a1851

Please sign in to comment.