Added newlines against buffering for log streaming. Fixed cli

This commit is contained in:
Qubasa
2023-10-03 14:38:51 +02:00
parent d25c3a0940
commit d8b69ec883
2 changed files with 3 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ async def get_vm_logs(uuid: UUID) -> StreamingResponse:
@router.post("/api/vms/create")
async def create_vm(
vm: Annotated[VmConfig, Body()], background_tasks: BackgroundTasks
vm: Annotated[VmConfig, Body()]
) -> VmCreateResponse:
flake_attrs = await get_attrs(vm.flake_url)
if vm.flake_attr not in flake_attrs: