Lib: fixing Builder exception

This commit is contained in:
Jakub Jezek 2021-06-01 10:52:57 +02:00
parent a3eae1cd15
commit 02eaeb552e
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -759,18 +759,11 @@ class BuildWorkfile:
# for backward compatibility this has to have exception
# if the concept will be agreed then this needs to be
# refactored without exception
if "nuke" in host_name:
build_presets = (
presets.get(host_name, {})
.get("workfile_options")
.get("builder_profiles")
)
else:
build_presets = (
presets.get(host_name, {})
.get("workfile_build")
.get("profiles")
)
build_presets = (
presets.get(host_name, {})
.get("workfile_build" or "workfile_builder")
.get("profiles")
)
if not build_presets:
return