mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-18 03:30:41 +08:00
Updated GetExitHandlerWorkflowStatistics to get the bearer token on the
fly, depending on the namespace. - Updated the places this function is called to pass in the client.
This commit is contained in:
@@ -356,7 +356,7 @@ func (c *Client) updateCronWorkflow(namespace string, name string, workflowTempl
|
||||
return nil, err
|
||||
}
|
||||
|
||||
exitHandlerStepName, exitHandlerStepTemplate, exitHandlerStepWhen, err, exitHandlerTemplate := GetExitHandlerWorkflowStatistics(namespace, workflowTemplateId)
|
||||
exitHandlerStepName, exitHandlerStepTemplate, exitHandlerStepWhen, err, exitHandlerTemplate := GetExitHandlerWorkflowStatistics(c, namespace, workflowTemplateId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -444,7 +444,7 @@ func (c *Client) createCronWorkflow(namespace string, workflowTemplateId *uint64
|
||||
return nil, err
|
||||
}
|
||||
|
||||
exitHandlerStepName, exitHandlerStepTemplate, exitHandlerStepWhen, err, exitHandlerTemplate := GetExitHandlerWorkflowStatistics(namespace, workflowTemplateId)
|
||||
exitHandlerStepName, exitHandlerStepTemplate, exitHandlerStepWhen, err, exitHandlerTemplate := GetExitHandlerWorkflowStatistics(c, namespace, workflowTemplateId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user