From d3129847b46a4f74a7eaa3e53c56deba830abd39 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson <jjohnson2@lenovo.com> Date: Wed, 4 May 2022 14:16:51 -0400 Subject: [PATCH] Add recognition of Alma 9 and (presumably) rocky 9 --- confluent_server/confluent/osimage.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index b42084dc..f79e4593 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -250,6 +250,11 @@ def check_rocky(isoinfo): arch = entry.split('.')[-2] cat = 'el8' break + if 'rocky-release-9' in entry: + ver = entry.split('-')[2] + arch = entry.split('.')[-2] + cat = 'el9' + break else: return None if arch == 'noarch' and '.discinfo' in isoinfo[1]: @@ -270,6 +275,11 @@ def check_alma(isoinfo): arch = entry.split('.')[-2] cat = 'el8' break + elif 'almalinux-release-9' in entry: + ver = entry.split('-')[2] + arch = entry.split('.')[-2] + cat = 'el9' + break else: return None if arch == 'noarch' and '.discinfo' in isoinfo[1]: