diff --git a/internal/jobqueue/api.go b/internal/jobqueue/api.go index f68200a2b..bd017c3e4 100644 --- a/internal/jobqueue/api.go +++ b/internal/jobqueue/api.go @@ -107,7 +107,6 @@ func (api *API) addJobHandler(writer http.ResponseWriter, request *http.Request, ImageBuildID: nextJob.ImageBuildID, Manifest: nextJob.Manifest, Targets: nextJob.Targets, - OutputType: nextJob.ImageType, }) } diff --git a/internal/jobqueue/api_test.go b/internal/jobqueue/api_test.go index ab88fc6c6..526e1f256 100644 --- a/internal/jobqueue/api_test.go +++ b/internal/jobqueue/api_test.go @@ -58,7 +58,7 @@ func TestCreate(t *testing.T) { } test.TestRoute(t, api, false, "POST", "/job-queue/v1/jobs", `{}`, http.StatusCreated, - `{"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","image_build_id":0,"manifest":{"sources":{},"pipeline":{}},"targets":[],"output_type":"qcow2"}`, "created", "uuid") + `{"id":"ffffffff-ffff-ffff-ffff-ffffffffffff","image_build_id":0,"manifest":{"sources":{},"pipeline":{}},"targets":[]}`, "created", "uuid") } func testUpdateTransition(t *testing.T, from, to string, expectedStatus int, expectedResponse string) { diff --git a/internal/jobqueue/job.go b/internal/jobqueue/job.go index 49c31e7c5..9de7592ef 100644 --- a/internal/jobqueue/job.go +++ b/internal/jobqueue/job.go @@ -22,7 +22,6 @@ type Job struct { ImageBuildID int `json:"image_build_id"` Manifest *osbuild.Manifest `json:"manifest"` Targets []*target.Target `json:"targets"` - OutputType string `json:"output_type"` } type JobStatus struct {