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 <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-03-23 21:58:30 +01:00
parent f5cf649511
commit cf2ad51243

View file

@ -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,