Skip to content

Commit

Permalink
add templates parsing to js job
Browse files Browse the repository at this point in the history
  • Loading branch information
arriven committed Apr 19, 2022
1 parent 8051cc3 commit aa03e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/job/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func jsJob(ctx context.Context, args config.Args, globalConfig *GlobalConfig, a
Data map[string]any
}

if err := mapstructure.Decode(args, &jobConfig); err != nil {
if err := mapstructure.Decode(templates.ParseAndExecuteMapStruct(logger, args, ctx), &jobConfig); err != nil {
return nil, fmt.Errorf("error parsing job config: %w", err)
}

Expand Down

0 comments on commit aa03e56

Please sign in to comment.