mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 05:36:50 +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
|
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)
|
id, createdWorkflow, err := c.createWorkflow(namespace, workflowTemplate.ID, workflowTemplate.WorkflowTemplateVersionId, &workflows[0], opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
|
Reference in New Issue
Block a user