cloudapi: remove arch from imageRequest

You can absolutely just get it from imageType, let's not duplicate
information, that's error-prone.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2024-02-16 14:07:43 +01:00 committed by Tomáš Hozza
parent 08aabe1bef
commit c48bf0a143
2 changed files with 14 additions and 9 deletions

View file

@ -136,7 +136,6 @@ func isLocalSave(options *UploadOptions) (bool, error) {
type imageRequest struct {
imageType distro.ImageType
arch distro.Arch
repositories []rpmmd.RepoConfig
imageOptions distro.ImageOptions
targets []*target.Target
@ -266,7 +265,6 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
irs = append(irs, imageRequest{
imageType: imageType,
arch: arch,
repositories: repos,
imageOptions: imageOptions,
targets: irTargets,