Skip to content

Commit

Permalink
fix: convert dots for execute
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Aug 7, 2024
1 parent ec86c2b commit d731138
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/api/v1/testkube/model_test_workflow_step_extended.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ func (w *TestWorkflowStep) ConvertDots(fn func(string) string) *TestWorkflowStep
if w.Parallel != nil && w.Parallel.Execution != nil && w.Parallel.Execution.Tags != nil {
w.Parallel.Execution.Tags = convertDotsInMap(w.Parallel.Execution.Tags, fn)
}
if w.Execute != nil {
for i := range w.Execute.Workflows {
w.Execute.Workflows[i].Tags = convertDotsInMap(w.Execute.Workflows[i].Tags, fn)
}
}
for i := range w.Steps {
w.Steps[i].ConvertDots(fn)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ func (w *TestWorkflowStepParallel) ConvertDots(fn func(string) string) *TestWork
if w.Execution != nil && w.Execution.Tags != nil {
w.Execution.Tags = convertDotsInMap(w.Execution.Tags, fn)
}
if w.Execute != nil {
for i := range w.Execute.Workflows {
w.Execute.Workflows[i].Tags = convertDotsInMap(w.Execute.Workflows[i].Tags, fn)
}
}

return w
}

Expand Down

0 comments on commit d731138

Please sign in to comment.