Skip to content

Commit

Permalink
Merge pull request #15 from mittwald/fix/job-slice-empty
Browse files Browse the repository at this point in the history
fix empty jobs slice to watch for file-changes
  • Loading branch information
martin-helmich authored Feb 19, 2020
2 parents dd6120b + 0848d87 commit c4d78ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/proc/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ func NewRunner(ctx context.Context, ignitionConfig *config.Ignition) *Runner {

func (r *Runner) exec(ctx context.Context, wg *sync.WaitGroup, errChan chan error) {
for j := range r.IgnitionConfig.Jobs {
job := Job{
job := &Job{
Config: &r.IgnitionConfig.Jobs[j],
}
job.Init()
r.jobs = append(r.jobs, job)

// execute job command
wg.Add(1)
Expand Down

0 comments on commit c4d78ec

Please sign in to comment.