Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed Sep 10, 2024
1 parent 2a7bcb7 commit 9e85fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundle/config/generate/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func ConvertJobToValue(job *jobs.Job) (dyn.Value, error) {
params := make([]dyn.Value, 0)
for _, parameter := range job.Settings.Parameters {
p := map[string]dyn.Value{
"name": dyn.NewValue(parameter.Name, []dyn.Location{}),
"default": dyn.NewValue(parameter.Default, []dyn.Location{}),
"name": dyn.NewValue(parameter.Name, []dyn.Location{{Line: 0}}), // We use Line: 0 to ensure that the name goes first.
"default": dyn.NewValue(parameter.Default, []dyn.Location{{Line: 1}}),
}
params = append(params, dyn.NewValue(p, []dyn.Location{}))
}
Expand Down

0 comments on commit 9e85fb8

Please sign in to comment.