From cf2ad5124327aa116a7a733a0847cf8cced086d4 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 23 Mar 2020 21:58:30 +0100 Subject: [PATCH] compose/ImageBuild: drop the distro field This likely needs to be reintroduced in some fashion, but it was unused, and when we reintroduced it it should be as a real Distro object. For now, drop it. Signed-off-by: Tom Gundersen --- internal/compose/compose.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/compose/compose.go b/internal/compose/compose.go index cec457e73..d43e1aba0 100644 --- a/internal/compose/compose.go +++ b/internal/compose/compose.go @@ -22,7 +22,6 @@ func (ste *StateTransitionError) Error() string { // ImageBuild represents a single image build inside a compose type ImageBuild struct { Id int `json:"id"` - Distro common.Distribution `json:"distro"` QueueStatus common.ImageBuildState `json:"queue_status"` ImageType common.ImageType `json:"image_type"` Manifest *osbuild.Manifest `json:"manifest"` @@ -48,7 +47,6 @@ func (ib *ImageBuild) DeepCopy() ImageBuild { // Create new image build struct return ImageBuild{ Id: ib.Id, - Distro: ib.Distro, QueueStatus: ib.QueueStatus, ImageType: ib.ImageType, Manifest: newManifestPtr,