Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jun 25, 2024
1 parent 247ae2d commit e8957ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundle/config/mutator/translate_paths_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func noSkipRewrite(string) bool {
return false
}

func perTaskRewritePatterns(t *translateContext, base dyn.Pattern) []jobRewritePattern {
func rewritePatterns(t *translateContext, base dyn.Pattern) []jobRewritePattern {
return []jobRewritePattern{
{
base.Append(dyn.Key("notebook_task"), dyn.Key("notebook_path")),
Expand Down Expand Up @@ -83,8 +83,8 @@ func (t *translateContext) jobRewritePatterns() []jobRewritePattern {
},
}

taskPatterns := perTaskRewritePatterns(t, base)
forEachPatterns := perTaskRewritePatterns(t, base.Append(dyn.Key("for_each_task"), dyn.Key("task")))
taskPatterns := rewritePatterns(t, base)
forEachPatterns := rewritePatterns(t, base.Append(dyn.Key("for_each_task"), dyn.Key("task")))
allPatterns := append(taskPatterns, jobEnvironmentsPatterns...)
allPatterns = append(allPatterns, forEachPatterns...)
return allPatterns
Expand Down

0 comments on commit e8957ee

Please sign in to comment.