2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-07-15 17:16:11 +00:00

Rename generically to coreos

We should be able to support either RH or Fedora
flavors.
This commit is contained in:
Jarrod Johnson
2021-05-19 17:28:05 -04:00
parent 52b39e632d
commit 9ac4cf0641
8 changed files with 6 additions and 2 deletions

View File

@ -434,9 +434,13 @@ def check_rhcos(isoinfo):
prodinfo = prodinfo.decode('utf8')
for inf in prodinfo.split():
if inf.startswith('coreos.liveiso=rhcos-'):
_, ver, _ = inf.split('-')
ver = inf.split('-')[1]
return {'name': 'rhcos-{0}-{1}'.format(ver, arch),
'method': EXTRACT, 'category': 'rhcos'}
'method': EXTRACT, 'category': 'coreos'}
elif inf.startswith('coreos.liveiso=fedore-coreos-'):
ver = inf.split('-')[2]
return {'name': 'fedoracoreos-{0}-{1}'.format(ver, arch),
'method': EXTRACT, 'category': 'coreos'}