From 64a84db64bd825ec2551b164734eaa354265f6cb Mon Sep 17 00:00:00 2001 From: Lili Nie Date: Thu, 31 Oct 2024 22:55:58 -0400 Subject: [PATCH] feat: Add support for translanting job-owner of kickstart --- src/mrack/transformers/beaker.py | 1 + tests/unit/test_beaker_transformer.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/mrack/transformers/beaker.py b/src/mrack/transformers/beaker.py index 498129fc..37800ade 100644 --- a/src/mrack/transformers/beaker.py +++ b/src/mrack/transformers/beaker.py @@ -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), diff --git a/tests/unit/test_beaker_transformer.py b/tests/unit/test_beaker_transformer.py index 9617dead..e81b3287 100644 --- a/tests/unit/test_beaker_transformer.py +++ b/tests/unit/test_beaker_transformer.py @@ -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", @@ -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",