Skip to content

Commit 7f2661a

Browse files
committed
Remove response output from Remove-SgwAccount
1 parent d4c2b9e commit 7f2661a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/StorageGRID-Webscale.psm1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3225,15 +3225,13 @@ function Global:Remove-SgwAccount {
32253225
$Method = "DELETE"
32263226

32273227
try {
3228-
$Response = Invoke-SgwRequest -WebSession $Server.Session -Method $Method -Uri $Uri -Headers $Server.Headers -SkipCertificateCheck:$Server.SkipCertificateCheck
3228+
$null = Invoke-SgwRequest -WebSession $Server.Session -Method $Method -Uri $Uri -Headers $Server.Headers -SkipCertificateCheck:$Server.SkipCertificateCheck
32293229
Write-Verbose "Successfully deleted account with ID $id"
32303230
}
32313231
catch {
32323232
$ResponseBody = ParseErrorForResponseBody $_
32333233
Throw "$Method to $Uri failed with Exception $( $_.Exception.Message ) `n $responseBody"
32343234
}
3235-
3236-
Write-Output $Response
32373235
}
32383236
}
32393237

0 commit comments

Comments
 (0)