Skip to content

Commit ed91036

Browse files
committed
updated ticket body
1 parent 1349f2d commit ed91036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CippExtensions/Public/Halo/New-HaloPSATicket.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function New-HaloPSATicket {
7979
$body = ConvertTo-Json -Compress -Depth 10 -InputObject @($Object)
8080

8181
Write-Information 'Sending ticket to HaloPSA'
82-
Write-Information $body
82+
Write-Host "Body we shipped: $body"
8383
try {
8484
if ($PSCmdlet.ShouldProcess('Send ticket to HaloPSA', 'Create ticket')) {
8585
$Ticket = Invoke-RestMethod -Uri "$($Configuration.ResourceURL)/Tickets" -ContentType 'application/json; charset=utf-8' -Method Post -Body $body -Headers @{Authorization = "Bearer $($token.access_token)" }
@@ -106,7 +106,7 @@ function New-HaloPSATicket {
106106
}
107107
Write-LogMessage -message "Failed to send ticket to HaloPSA: $Message" -API 'HaloPSATicket' -sev Error -LogData (Get-CippException -Exception $_)
108108
Write-Information "Failed to send ticket to HaloPSA: $Message"
109-
Write-Host "Body we tried to ship: $body"
109+
Write-Information "Body we tried to ship: $body"
110110
return "Failed to send ticket to HaloPSA: $Message"
111111
}
112112
}

0 commit comments

Comments
 (0)