Skip to content

Commit

Permalink
Fixed issue thycotic-ps#277 Get-TssSecretSetting unable to Convert
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Agrawal authored and gaurava-delinea committed Sep 12, 2022
1 parent 4900d8a commit 62f645b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/functions/secrets/Get-TssSecretSetting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ function Get-TssSecretSetting {
}

if ($restResponse) {
[Thycotic.PowerShell.Secrets.DetailSettings]$restResponse
$restResponse | ForEach-Object {
$NonEmptyProperties = $_.restResponse.Properties | Where-Object {$_.Value} | Select-Object -ExpandProperty Name
$_ | Select-Object -Property $NonEmptyProperties
}
[Thycotic.PowerShell.Secrets.DetailSettings]$NonEmptyProperties
}
}
} else {
Expand Down

0 comments on commit 62f645b

Please sign in to comment.