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

Fix SUSE imgutil

This commit is contained in:
Jarrod Johnson 2021-08-27 08:46:23 -04:00
parent a9044238ba
commit c2de5fa580

View File

@ -727,7 +727,7 @@ def fingerprint_source_suse(files, sourcepath, args):
if key == 'name':
osname, ver, arch = val.split('-')
if issuse:
return SuseHandler(osname, ver, arch)
return SuseHandler(osname, ver, arch, args)
for filen in files:
if '-release-8' in filen:
@ -800,7 +800,7 @@ def fingerprint_host_suse(args, hostpath='/'):
if inf.name.startswith(b'SLE_'):
osname = 'sle'
if osname:
return SuseHandler(osname, inf.version, os.uname().machine)
return SuseHandler(osname, inf.version, os.uname().machine, args)
def fingerprint_host(args, hostpath='/'):
oshandler = None