UI: Added process executor. Display vm status correctly in list. | CLI: Added get_qemu_version(), fixed virtio audio bug.

This commit is contained in:
Qubasa
2023-12-26 18:02:43 +01:00
parent a7ac0aa1b6
commit e17508702a
11 changed files with 219 additions and 105 deletions

View File

@@ -22,7 +22,7 @@ def list_machines(flake_url: Path | str) -> list[str]:
"--json",
]
)
proc = subprocess.run(cmd, text=True, capture_output=True)
proc = subprocess.run(cmd, text=True, stdout=subprocess.PIPE)
assert proc.stdout is not None
if proc.returncode != 0:
raise ClanError(
@@ -31,8 +31,6 @@ command: {shlex.join(cmd)}
exit code: {proc.returncode}
stdout:
{proc.stdout}
stderr:
{proc.stderr}
"""
)
res = proc.stdout.strip()