From 9ccd9ee6df19f3340653e930c8099c0d7101a977 Mon Sep 17 00:00:00 2001 From: Ashwin Das Date: Mon, 2 Dec 2024 09:53:49 -0500 Subject: [PATCH] [konflux] Fail when SBOMs can't be accessed --- doozer/doozerlib/backend/konflux_image_builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doozer/doozerlib/backend/konflux_image_builder.py b/doozer/doozerlib/backend/konflux_image_builder.py index d5b2c6f1e..f386b48cd 100644 --- a/doozer/doozerlib/backend/konflux_image_builder.py +++ b/doozer/doozerlib/backend/konflux_image_builder.py @@ -281,6 +281,8 @@ async def _get_for_arch(arch): return source_rpms results = await asyncio.gather(*(_get_for_arch(arch) for arch in arches)) + if None in results: + raise ChildProcessError("Could get data from SBOM") installed_packages = set() for srpms in results: installed_packages.update(srpms)