From 82c3d91e85e4ad59535a47e0eea4ae2b7936149e Mon Sep 17 00:00:00 2001 From: Qubasa Date: Wed, 27 Sep 2023 02:01:59 +0200 Subject: [PATCH] Working version --- pkgs/clan-cli/clan_cli/webui/routers/vms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/webui/routers/vms.py b/pkgs/clan-cli/clan_cli/webui/routers/vms.py index f3cb272b7..f0c35ac63 100644 --- a/pkgs/clan-cli/clan_cli/webui/routers/vms.py +++ b/pkgs/clan-cli/clan_cli/webui/routers/vms.py @@ -133,8 +133,8 @@ async def get_status(uuid: str) -> VmStatusResponse: @router.get("/api/vms/{uuid}/logs") async def get_logs(uuid: str) -> StreamingResponse: + # Generator function that yields log lines as they are available def stream_logs(): - task = get_task(uuid) for proc in task.procs: