diff --git a/bundle/config/generate/job.go b/bundle/config/generate/job.go index 4ee6eba559..6cd7c1b328 100644 --- a/bundle/config/generate/job.go +++ b/bundle/config/generate/job.go @@ -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{})) }