ci/b2c: always define cmdline_extras

Just make it an empty string when undefined

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26653>
This commit is contained in:
Eric Engestrom
2023-12-12 12:23:31 +00:00
committed by Marge Bot
parent 86ee903b38
commit 50da22812d

View File

@@ -95,8 +95,7 @@ values['local_container'] = values['local_container'].replace(
'{{ fdo_proxy_registry }}'
)
if 'B2C_KERNEL_CMDLINE_EXTRAS' in environ:
values['cmdline_extras'] = environ['B2C_KERNEL_CMDLINE_EXTRAS']
values['cmdline_extras'] = environ.get('B2C_KERNEL_CMDLINE_EXTRAS', '')
f = open(path.splitext(path.basename(args.template))[0], "w")
f.write(template.render(values))