Skip to content

Commit e131da9

Browse files
author
Emile
authored
Fix for #46
`-body $body` was missing, filtering was not working as a result.
1 parent a72c5c7 commit e131da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ITGlueAPI/Resources/Passwords.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function Get-ITGluePasswords {
131131
try {
132132
$ITGlue_Headers.Add('x-api-key', (New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList 'N/A', $ITGlue_API_Key).GetNetworkCredential().Password)
133133
$rest_output = Invoke-RestMethod -method 'GET' -uri ($ITGlue_Base_URI + $resource_uri) -headers $ITGlue_Headers `
134-
-ErrorAction Stop -ErrorVariable $web_error
134+
-body $body -ErrorAction Stop -ErrorVariable $web_error
135135
} catch {
136136
Write-Error $_
137137
} finally {
@@ -264,4 +264,4 @@ function Remove-ITGluePasswords {
264264
$data = @{}
265265
$data = $rest_output
266266
return $data
267-
}
267+
}

0 commit comments

Comments
 (0)