2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Fix LEAP media detection

LEAP was incorrectly detected as SLE.
This commit is contained in:
Jarrod Johnson 2020-05-06 16:56:35 -04:00
parent cda0f439d3
commit 3e02e8bf85

View File

@ -141,7 +141,10 @@ def check_sles(isoinfo):
ver = hline[-1].split('-')[0]
major = ver.split('.', 2)[0]
if hline[-1].startswith('15'):
distro = 'sle'
if hline[1] == 'openSUSE-Leap':
distro = 'opensuse_leap'
else:
distro = 'sle'
if hline[0] == '/':
disk = '1'
elif hline[0].startswith('/Module'):