Skip to content

Commit

Permalink
feat: Add support for translanting job-owner of kickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily authored and dav-pascual committed Nov 5, 2024
1 parent 868523c commit 64a84db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mrack/transformers/beaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def create_host_requirement(self, host):
"meta_distro": "distro" in host,
"arch": host.get("arch", "x86_64"),
"variant": variant,
"job_owner": host.get(CONFIG_KEY, {}).get("beaker_job_owner"),
"ks_meta": self._get_ks_meta(host),
"kernel_options": self._get_kernel_options(host),
"kernel_options_post": self._get_kernel_options_post(host),
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_beaker_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class TestBeakerTransformer:
"ks_meta": "FEDORA_HOST_KS_META",
"kernel_options": "FEDORA_KERNEL_OPTIONS",
"kernel_options_post": "FEDORA_KERNEL_OPTIONS_POST",
"job_owner": "FEDORA",
"ks_append": {
"pre-install": "%pre\npre_dummy\n%end",
"script": "script_dummy",
Expand Down Expand Up @@ -194,6 +195,7 @@ async def create_transformer(self, legacy=False):
"distro": "Fedora-36%",
"variant": "Server",
"ks_meta": "FEDORA_HOST_KS_META",
"job_owner": "FEDORA",
"ks_append": maximal_ksappend,
"kernel_options": "FEDORA_KERNEL_OPTIONS",
"kernel_options_post": "FEDORA_KERNEL_OPTIONS_POST",
Expand Down

0 comments on commit 64a84db

Please sign in to comment.