Isolate our basis validity to single operation

This commit is contained in:
Chris Roberts 2022-04-25 15:43:25 -07:00
parent f39e5709f4
commit 5b04ac5c35

View File

@ -65,7 +65,6 @@ func (r *Runner) executeJob(
opts := []core.BasisOption{
core.WithLogger(log),
core.WithUI(ui),
core.WithPluginManager(r.plugins),
core.WithClient(r.client),
core.WithJobInfo(jobInfo),
}
@ -84,7 +83,7 @@ func (r *Runner) executeJob(
opts = append(opts, core.WithBasisRef(ref))
// Load our basis
b, err := r.factory.New("", opts...)
b, err := r.factory.New(job.Id, opts...)
if err != nil {
return
}