move workspace_types and common_types and refactor Parameter alias

This commit is contained in:
rushtehrani
2020-04-29 17:31:44 -07:00
parent b0571f69c9
commit af82c312a7
9 changed files with 25 additions and 38 deletions

View File

@@ -310,7 +310,7 @@ func (c *Client) CreateWorkflowExecution(namespace string, workflow *WorkflowExe
re, _ := regexp.Compile(`[^a-zA-Z0-9-]{1,}`)
opts.GenerateName = strings.ToLower(re.ReplaceAllString(workflowTemplate.Name, `-`)) + "-"
for _, param := range workflow.Parameters {
opts.Parameters = append(opts.Parameters, WorkflowExecutionParameter{
opts.Parameters = append(opts.Parameters, Parameter{
Name: param.Name,
Value: param.Value,
})