From 26519ff79323824b47ed022c6192a06572609cdf Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 7 May 2026 14:10:05 -0400 Subject: [PATCH] Do not import if we don't have matching profile fodder --- confluent_server/confluent/osimage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 6ba31dfc..571381ab 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -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,