vms/qemu: do not always use waypipe graphic options

This commit is contained in:
danjujan
2024-11-10 20:29:32 +00:00
committed by Jörg Thalheim
parent c4a5810f52
commit 1243358e74
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class VmConfig:
machine_description: str | None
machine_icon: Path | None
waypipe: bool = False
waypipe: WaypipeConfig | None = None
def __post_init__(self) -> None:
if isinstance(self.flake_url, str):

View File

@@ -22,7 +22,7 @@ def graphics_options(vm: VmConfig) -> GraphicOptions:
"driver=pa,model=virtio",
]
if vm.waypipe:
if vm.waypipe.enable:
# FIXME: check for collisions
cid = random.randint(1, 2**32)
# fmt: off