2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Fix RHEL 7 support

It was not correctly fingerprinting RHEL 7.
This commit is contained in:
Jarrod Johnson 2020-08-06 20:40:31 -04:00
parent 8aabdcc454
commit 86c0d79d73

View File

@ -333,6 +333,14 @@ def check_rhel(isoinfo):
arch = dotsplit[-2]
ver = dotsplit[0].split('release-')[-1].replace('-', '.')
break
elif 'redhat-release-server-7' in entry:
dotsplit = entry.split('.')
arch = dotsplit[-2]
ver = dotsplit[0].split('release-server-')[-1].replace('-', '.')
if '.' not in ver:
minor = dotsplit[1].split('-', 1)[0]
ver = ver + '.' + minor
break
elif 'redhat-release-8' in entry:
ver = entry.split('-')[2]
arch = entry.split('.')[-2]