2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-05-09 02:00:11 +00:00

Do not import if we don't have matching profile fodder

This commit is contained in:
Jarrod Johnson
2026-05-07 14:10:05 -04:00
parent 2586393a45
commit 26519ff793
+3
View File
@@ -596,6 +596,9 @@ def check_ubuntu(isoinfo):
exlist = ['casper/*vmlinuz', 'casper/*initrd',
'efi/boot/bootx64.efi', 'efi/boot/grubx64.efi'
]
defprofile = '/opt/confluent/lib/osdeploy/ubuntu{0}'.format(major)
if not os.path.exists(defprofile):
return None
return {'name': 'ubuntu-{0}-{1}'.format(ver, arch),
'method': EXTRACT|COPY,
'extractlist': exlist,