From c03d9489985719a6a5f8f58604ea10d2ff164ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20B=C3=BCchse?= Date: Mon, 3 Nov 2025 21:14:56 +0100 Subject: [PATCH] Bugfix: standard-images-check ABORTing when image_source not set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct behavior is to FAIL, not ABORT. Signed-off-by: Matthias Büchse --- Tests/iaas/scs_0104_standard_images/standard_images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/iaas/scs_0104_standard_images/standard_images.py b/Tests/iaas/scs_0104_standard_images/standard_images.py index b2f2a66f8..6f8c827e8 100644 --- a/Tests/iaas/scs_0104_standard_images/standard_images.py +++ b/Tests/iaas/scs_0104_standard_images/standard_images.py @@ -72,13 +72,13 @@ def compute_scs_0104_source(image_lookup, image_spec): matches = _lookup_images(image_lookup, image_spec) errors = 0 for image in matches: - img_source = image.properties['image_source'] + img_source = image.properties.get('image_source', '') sources = image_spec['source'] if not isinstance(sources, (tuple, list)): sources = [sources] if not any(img_source.startswith(src) for src in sources): errors += 1 - logger.error(f"Image '{image.name}' source mismatch: {img_source} matches none of these prefixes: {', '.join(sources)}") + logger.error(f"Image '{image.name}' source mismatch: '{img_source}' matches none of these prefixes: {', '.join(sources)}") return not errors