Skip to content

Commit 5225224

Browse files
authored
Merge pull request #1139 from AlmaLinux/use_host_resolv
Add ability to pass "use_host_resolv" value from platform flavour data
2 parents 992eaa0 + 3f20049 commit 5225224

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

alws/routers/build_node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ async def get_task(
125125
response["platform"].data["mock"]["chroot_setup_cmd"] = (
126126
flavour.data["mock"]["chroot_setup_cmd"]
127127
)
128+
if "use_host_resolv" in flavour.data.get('mock', {}):
129+
response["platform"].data["mock"]["use_host_resolv"] = (
130+
flavour.data["mock"]["use_host_resolv"]
131+
)
128132
if "dnf_common_opts" in flavour.data.get('mock', {}):
129133
if "dnf_common_opts" not in response["platform"].data["mock"]:
130134
response["platform"].data["mock"]["dnf_common_opts"] = []

alws/schemas/platform_flavors_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class CreateFlavour(BaseModel):
99
name: str
1010
modularity: typing.Optional[dict] = None
11-
repositories: typing.List[RepositoryCreate]
11+
repositories: typing.List[RepositoryCreate] = []
1212
data: typing.Optional[typing.Dict[str, typing.Any]] = None
1313

1414

0 commit comments

Comments
 (0)