change order of method calls to ensure istio removal

This commit is contained in:
rushtehrani
2020-04-27 10:18:42 -07:00
parent e7bac1229b
commit eb9ae0cf70

View File

@@ -234,12 +234,12 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateId *uint64, wf
wf.ObjectMeta.Labels = *opts.Labels
}
if err = c.injectAutomatedFields(namespace, wf, opts); err != nil {
err = InjectExitHandlerWorkflowExecutionStatistic(wf, namespace, workflowTemplateId)
if err != nil {
return nil, err
}
err = InjectExitHandlerWorkflowExecutionStatistic(wf, namespace, workflowTemplateId)
if err != nil {
if err = c.injectAutomatedFields(namespace, wf, opts); err != nil {
return nil, err
}