Skip to content

ActionRerun problem #128

@jfink5

Description

@jfink5

ActionRerun class produces different results in the rendered json. This must have broke after a recent update.

If given a job aapi object and update using the following code...

job.if_list.append(
   IfCompletionStatus("action_if_failure",
      completion_status="NOTOK",
      on_list=[ActionRerun("rerun")]
   )
)
job.if_list.append(
   IfOutput("search_output",
      statement="*",
      code="*rerun me please*",
      on_list=[ActionRerun("rerun_me")]
   )
)

The first ActionRerun produces incorrect json...

"action_if_failure": {
                "Type": "If:CompletionStatus",
                "rerun": {},
                "CompletionStatus": "NOTOK"
}

Notice the empty object.
The second ActionRerun produces correct json...

"search_output": {
                "Type": "If:Output",
                "rerun_me": {
                    "Type": "Action:Rerun"
                },
                "Code": "*rerun me please*",
                "Statement": "*"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions