Added state directory.

This commit is contained in:
2023-10-13 19:56:10 +02:00
parent 4ab4832d41
commit 740e5e2ebc
10 changed files with 74 additions and 35 deletions

View File

@@ -35,7 +35,8 @@ async def list_machines() -> MachinesResponse:
@router.post("/api/machines", status_code=201)
async def create_machine(machine: Annotated[MachineCreate, Body()]) -> MachineResponse:
_create_machine(machine.name)
out = await _create_machine(machine.name)
log.debug(out)
return MachineResponse(machine=Machine(name=machine.name, status=Status.UNKNOWN))