From a44a499553450d6d2adde5a69774f5e5cbef7e65 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Wed, 22 Jan 2025 19:23:37 +0100 Subject: [PATCH] worker: support worker server target results --- cmd/osbuild-worker/jobimpl-osbuild.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/osbuild-worker/jobimpl-osbuild.go b/cmd/osbuild-worker/jobimpl-osbuild.go index 4b509702dd..cf258f7594 100644 --- a/cmd/osbuild-worker/jobimpl-osbuild.go +++ b/cmd/osbuild-worker/jobimpl-osbuild.go @@ -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)