-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
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
Labels
No labels