AnsibleTower-PowerShell icon indicating copy to clipboard operation
AnsibleTower-PowerShell copied to clipboard

Get-AnsibleSchedule.ps1 throw an exception for next_run null value

Open thylocene opened this issue 5 years ago • 0 comments

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

thylocene avatar Nov 11 '19 01:11 thylocene