vms/qemu: do not always use waypipe graphic options
This commit is contained in:
@@ -28,7 +28,7 @@ class VmConfig:
|
|||||||
machine_description: str | None
|
machine_description: str | None
|
||||||
machine_icon: Path | None
|
machine_icon: Path | None
|
||||||
|
|
||||||
waypipe: bool = False
|
waypipe: WaypipeConfig | None = None
|
||||||
|
|
||||||
def __post_init__(self) -> None:
|
def __post_init__(self) -> None:
|
||||||
if isinstance(self.flake_url, str):
|
if isinstance(self.flake_url, str):
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ def graphics_options(vm: VmConfig) -> GraphicOptions:
|
|||||||
"driver=pa,model=virtio",
|
"driver=pa,model=virtio",
|
||||||
]
|
]
|
||||||
|
|
||||||
if vm.waypipe:
|
if vm.waypipe.enable:
|
||||||
# FIXME: check for collisions
|
# FIXME: check for collisions
|
||||||
cid = random.randint(1, 2**32)
|
cid = random.randint(1, 2**32)
|
||||||
# fmt: off
|
# fmt: off
|
||||||
|
|||||||
Reference in New Issue
Block a user