mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-04 13:22:41 +08:00
Removing sys-uid appending.
- Workflow generates the name on creation. We're continuing to use workflow.name.
This commit is contained in:

committed by
rushtehrani

parent
5e86a0e2aa
commit
184bb1247d
@@ -344,20 +344,6 @@ func (c *Client) CreateWorkflowExecution(namespace string, workflow *WorkflowExe
|
||||
return nil, err
|
||||
}
|
||||
|
||||
appendSysUid := true
|
||||
for _, param := range opts.Parameters {
|
||||
if param.Name == "sys-uid" {
|
||||
appendSysUid = false
|
||||
break
|
||||
}
|
||||
}
|
||||
if appendSysUid {
|
||||
opts.Parameters = append(opts.Parameters, Parameter{
|
||||
Name: "sys-uid",
|
||||
Value: ptr.String(workflowUid),
|
||||
})
|
||||
}
|
||||
|
||||
id, createdWorkflow, err := c.createWorkflow(namespace, workflowTemplate.ID, workflowTemplate.WorkflowTemplateVersionId, &workflows[0], opts)
|
||||
if err != nil {
|
||||
log.WithFields(log.Fields{
|
||||
|
Reference in New Issue
Block a user