2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Correct formatting mistake in os profile label in diskless

This commit is contained in:
Jarrod Johnson 2021-06-23 11:32:43 -04:00
parent fc19ca4e36
commit b2fa2d92c5

View File

@ -485,7 +485,7 @@ def pack_image(opts, args):
if line.startswith('PRETTY_NAME="'):
prettyname = line.replace(
'PRETTY_NAME=', '').replace('"', '')
label = '{0} ({1}'.format(prettyname, 'Diskless Boot')
label = '{0} ({1})'.format(prettyname, 'Diskless Boot')
with open(os.path.join(outdir, 'profile.yaml'), 'w') as profile:
profile.write('label: {0}\nkernelargs: quiet # confluent_imagemethod=untethered|tethered\n'.format(label))
oscat = oshandler.oscategory