mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 13:46:51 +08:00
update/fix: fixed issue where parameters were not being sent with API response.
Fixed issue where cron workflows did not apply their labels to the newly created workflow executions.
This commit is contained in:
@@ -49,6 +49,15 @@ func apiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecu
|
||||
workflow.WorkflowTemplate = apiWorkflowTemplate(wf.WorkflowTemplate)
|
||||
}
|
||||
|
||||
if wf.ParametersBytes != nil {
|
||||
parameters, err := wf.LoadParametersFromBytes()
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
workflow.Parameters = converter.ParametersToAPI(parameters)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user