Missed ErrorAction in the params

This commit is contained in:
Jordan Borean
2021-03-24 12:21:50 +10:00
parent 1b6cfd803c
commit b222f10d68

View File

@@ -70,6 +70,7 @@ $invoke_params = @{
Body = (ConvertTo-Json $data)
Uri = "$tower_url/api/v2/job_templates/$job_template_id/callback/"
UseBasicParsing = $true
ErrorAction = 'Stop'
}
$invoke_command = Get-Command -Name Invoke-WebRequest