fix: handle overrides in system config
This commit is contained in:
parent
3917e4dbb2
commit
5c161f4481
1 changed files with 9 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ def resolve_config(system_config: dict) -> dict:
|
|||
"stages": system_config["stages"]
|
||||
if isinstance(system_config.get("stages"), list)
|
||||
else [],
|
||||
"override": system_config["override"]
|
||||
if isinstance(system_config.get("override"), list)
|
||||
else [],
|
||||
"distro-config": system_config["distro-config"],
|
||||
"auto-update": system_config["auto-update"]
|
||||
if isinstance(system_config.get("auto-update"), dict)
|
||||
|
|
@ -54,6 +57,12 @@ def resolve_config(system_config: dict) -> dict:
|
|||
else []
|
||||
)
|
||||
|
||||
base_config["override"] += (
|
||||
system_config["override"]
|
||||
if isinstance(system_config.get("override"), list)
|
||||
else []
|
||||
)
|
||||
|
||||
base_config["auto-update"] = (
|
||||
system_config["auto-update"]
|
||||
if isinstance(system_config.get("auto-update"), dict)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue