AnsibleTower-PowerShell
AnsibleTower-PowerShell copied to clipboard
Get-AnsibleSchedule.ps1 throw an exception for next_run null value
Next_run can be null. Get-AnsibleSchedule.ps1 throws an exception for next_run null value
Exception calling "ParseToSchedule" with "1" argument(s): "Error converting value {null} to type 'System.DateTime'. Path 'next_run', line 73, position 21." At C:\Program Files\WindowsPowerShell\Modules\AnsibleTower\1.0.135\ExportedFunctions\Get-AnsibleSchedule.ps1:117 char:13
-
$AnsibleObject = [AnsibleTower.JsonFunctions]::ParseTosch ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : JsonSerializationException