Skip to content

Commit

Permalink
worker: support worker server target results
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Jan 24, 2025
1 parent 4e803af commit a44a499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/osbuild-worker/jobimpl-osbuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,9 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
artifact := jobTarget.OsbuildArtifact
switch targetOptions := jobTarget.Options.(type) {
case *target.WorkerServerTargetOptions:
targetResult = target.NewWorkerServerTargetResult(&artifact)
targetResult = target.NewWorkerServerTargetResult(&target.WorkerServerTargetResultOptions{
ArtifactRelPath: path.Join(jobTarget.OsbuildArtifact.ExportFilename),
}, &artifact)
var f *os.File
imagePath := path.Join(outputDirectory, jobTarget.OsbuildArtifact.ExportName, jobTarget.OsbuildArtifact.ExportFilename)
f, err = os.Open(imagePath)
Expand Down

0 comments on commit a44a499

Please sign in to comment.