image-build: Remove check for number of images
If task does not produce the expected number of images, it should fail at Koji level. Also, this check does not really work when some architectures are allowed to fail. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
63a3b6ccaa
commit
1647f7612a
@ -211,14 +211,6 @@ class CreateImageBuildThread(WorkerThread):
|
||||
image_infos.append({'path': path, 'suffix': suffix, 'type': format, 'arch': arch})
|
||||
break
|
||||
|
||||
if len(image_infos) != len(cmd['format']) * (len(arches) - len(self.failable_arches)):
|
||||
self.pool.log_error(
|
||||
"Error in koji task %s. Expected to find same amount of images "
|
||||
"as in suffixes attr in image-build (%s) for each arch (%s). Got '%s'." %
|
||||
(output["task_id"], len(cmd['format']),
|
||||
len(arches), len(image_infos)))
|
||||
self.fail(compose, cmd)
|
||||
|
||||
# The usecase here is that you can run koji image-build with multiple --format
|
||||
# It's ok to do it serialized since we're talking about max 2 images per single
|
||||
# image_build record
|
||||
|
Loading…
Reference in New Issue
Block a user