swallow failures to receive job data

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2022-05-07 00:15:43 -06:00
parent e4b1e51a90
commit b7194f0a96
1 changed files with 4 additions and 5 deletions

View File

@ -10,7 +10,7 @@
. "${PSScriptRoot}\helper.ps1"
Set-PSDebug -Trace 2
#Set-PSDebug -Trace 2
Write-Output "current user"
whoami
@ -85,10 +85,9 @@ while ($csi_sanity_job -and ($csi_sanity_job.State -eq "Running" -or $csi_sanity
}
catch {
if ($job.State -ne "Failed") {
Write-Output "failure receiving job data"
$job | ConvertTo-Json | Write-Output
Write-Output $_
throw $_
Write-Output "failure receiving job data: " + $_
$job | fl
#throw $_
}
}
}