Skip to content

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

@thylocene

Description

@thylocene

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions