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:
Aleksandr Melnikov
2020-04-15 10:11:24 -07:00
parent c5c1179d64
commit 059608018a
2 changed files with 11 additions and 6 deletions

View File

@@ -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
}