From 5e8b0cee9ead074bd23ade805284fccb27641858 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 29 May 2024 11:56:50 +0200 Subject: [PATCH] test/generate-ostree-build-config: split version on dot We use dot-separated version numbers for RHEL now so let's split on dot to get the major. --- test/scripts/generate-ostree-build-config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/scripts/generate-ostree-build-config b/test/scripts/generate-ostree-build-config index 5997a021b6..9ca5d96262 100755 --- a/test/scripts/generate-ostree-build-config +++ b/test/scripts/generate-ostree-build-config @@ -165,7 +165,8 @@ def gen_image_manifests(config_map, configs, distro, arch, outputdir): def default_ref(distro, arch): name, version = distro.split("-") if name == "rhel": - version = version[0] # this will break on RHEL 10 + # we use dots in our RHEL versions now + version, *_ = version.split(".") product = "edge" elif name == "fedora": product = "iot"