ARG001: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 16:34:19 +02:00
parent 136acc7901
commit 94a158b77a

View File

@@ -150,7 +150,7 @@ class Error(Exception):
pass pass
def prepare_machine_root(machinename: str, root: Path) -> None: def prepare_machine_root(root: Path) -> None:
root.mkdir(parents=True, exist_ok=True) root.mkdir(parents=True, exist_ok=True)
root.joinpath("etc").mkdir(parents=True, exist_ok=True) root.joinpath("etc").mkdir(parents=True, exist_ok=True)
root.joinpath(".env").write_text( root.joinpath(".env").write_text(
@@ -197,7 +197,7 @@ class Machine:
return self.get_systemd_process() return self.get_systemd_process()
def start(self) -> None: def start(self) -> None:
prepare_machine_root(self.name, self.rootdir) prepare_machine_root(self.rootdir)
init_test_environment() init_test_environment()
cmd = [ cmd = [
"systemd-nspawn", "systemd-nspawn",