task_manager: return task directly instead of uuid

This commit is contained in:
Jörg Thalheim
2023-10-03 17:48:56 +02:00
parent de3084066c
commit b23d2b65e1
3 changed files with 15 additions and 15 deletions

View File

@@ -54,5 +54,5 @@ async def create_vm(vm: Annotated[VmConfig, Body()]) -> VmCreateResponse:
status_code=status.HTTP_400_BAD_REQUEST,
detail=f"Provided attribute '{vm.flake_attr}' does not exist.",
)
uuid = create.create_vm(vm)
return VmCreateResponse(uuid=str(uuid))
task = create.create_vm(vm)
return VmCreateResponse(uuid=str(task.uuid))