Commit 5503548 image-build: Correctly write can_fail option

1 file Authored and Committed by lsedlar 5 months ago
image-build: Correctly write can_fail option

Koji expects the value as comma separated list, otherwise it will ignore
it. This makes it possible for the image building to fail on per arch
basis.

Relates: #128
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>

    
1 @@ -183,6 +183,8 @@
2           # Join the arches into a single string. This is the value expected by
3           # koji config file.
4           cmd["image_conf"]["image-build"]['arches'] = ','.join(cmd["image_conf"]["image-build"]['arches'])
5 +         if 'can_fail' in cmd["image_conf"]["image-build"]:
6 +             cmd["image_conf"]["image-build"]['can_fail'] = ','.join(cmd["image_conf"]["image-build"]['can_fail'])
7   
8           koji_cmd = koji_wrapper.get_image_build_cmd(cmd["image_conf"],
9                                                       conf_file_dest=cmd["conf_file"],