From 5de13f618e40acdd3f7e7b024c7a7b0a49a46380 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Wed, 11 Sep 2024 10:32:15 +0200 Subject: [PATCH] Add missing conditional --- bundle/config/mutator/apply_presets.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundle/config/mutator/apply_presets.go b/bundle/config/mutator/apply_presets.go index 28d015c109..e86f167cb9 100644 --- a/bundle/config/mutator/apply_presets.go +++ b/bundle/config/mutator/apply_presets.go @@ -46,6 +46,9 @@ func (m *applyPresets) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnos // Jobs presets: Prefix, Tags, JobsMaxConcurrentRuns, TriggerPauseStatus for _, j := range r.Jobs { + if j.JobSettings == nil { + return diag.Errorf("job %s has no job settings", j.Name) + } j.Name = prefix + j.Name if j.Tags == nil { j.Tags = make(map[string]string)