From 9e85fb841b0bdb0d0009ab3603a36d5ef945ebda Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Tue, 10 Sep 2024 15:49:14 +0200 Subject: [PATCH] fix order --- bundle/config/generate/job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{})) }