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:
parent
08aabe1bef
commit
c48bf0a143
2 changed files with 14 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue