Drop support for specifying more than one image type

While it is technically possible to build more than one image type
as part of a Koji compose in osbuild-composer, this option is not used
in reality and it also makes very little sense. If the user wants to
build more than one image type, they should submit multiple Koji builds.

Adjust affected unit tests.
This commit is contained in:
Tomas Hozza 2022-08-16 16:20:34 +02:00 committed by Jakub Rusz
parent dd8233e8b7
commit c725265081
6 changed files with 39 additions and 45 deletions

View file

@ -28,9 +28,8 @@ OSBUILD_IMAGE_SCHEMA = {
"description": "Distribution"
},
{
"type": "array",
"description": "Image Types",
"minItems": 1
"type": "string",
"description": "Image Type",
},
{
"type": "string",
@ -120,10 +119,10 @@ OSBUILD_IMAGE_SCHEMA = {
@koji.plugin.export
def osbuildImage(name, version, distro, image_types, target, arches, opts=None, priority=None):
def osbuildImage(name, version, distro, image_type, target, arches, opts=None, priority=None):
"""Create an image via osbuild"""
context.session.assertPerm("image")
args = [name, version, distro, image_types, target, arches, opts]
args = [name, version, distro, image_type, target, arches, opts]
task = {"channel": "image"}
try: