Skip to content

Commit

Permalink
Add missing conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkats-db committed Sep 11, 2024
1 parent 01c381f commit 5de13f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bundle/config/mutator/apply_presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5de13f6

Please sign in to comment.