Working version

This commit is contained in:
Qubasa
2023-09-27 02:01:59 +02:00
committed by Mic92
parent a8bab7bb96
commit 82c3d91e85

View File

@@ -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: