Skip to content

Commit

Permalink
Get-Secret - fixe issue with IncludeInactive
Browse files Browse the repository at this point in the history
Parameter was not applied to the API call being made
  • Loading branch information
wsmelton committed Jun 12, 2021
1 parent aede34b commit 19f3920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/secrets/Get-Secret.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function Get-Secret {
$getBody = @{}
if ($restrictedParams.Count -gt 0) {
switch ($tssParams.Keys) {
'IncludeInactive' { $getBody.Add('includeInactive', [boolean]$IncludeInactive) }
'Comment' { $getBody.Add('comment', $Comment) }
'ForceCheckIn' { $getBody.Add('forceCheckIn', [boolean]$ForceCheckIn) }
'TicketNumber' { $getBody.Add('ticketNumber', $TicketNumber) }
Expand Down

0 comments on commit 19f3920

Please sign in to comment.