osbuild: accept only a single image type in the configuration
Modify the osbuild configuration schema to accept only an array with a single value as the `image_types`, in addition to a single string. The single string was supported by the schema also before, but this fact was not mentioned in the documentation, nor it was supported by the `koji-osbuild` plugin of version lower than `9`. Update the documentation accordingly. Add unit test for invalid configuration containing more than one image type. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
57ea640916
commit
805a1083a2
3 changed files with 37 additions and 2 deletions
|
|
@ -1594,7 +1594,9 @@ OSBuild Composer for building images
|
|||
|
||||
* ``name`` -- name of the Koji package
|
||||
* ``distro`` -- image for which distribution should be build TODO examples
|
||||
* ``image_types`` -- a list of image types to build (e.g. ``qcow2``)
|
||||
* ``image_types`` -- a list with a single image type string or just a
|
||||
string representing the image type to build (e.g. ``qcow2``). In any
|
||||
case, only a single image type can be provided as an argument.
|
||||
|
||||
Optional keys:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue