Have optional body in start node API endpoint

This commit is contained in:
grossmj 2026-04-12 14:04:04 +08:00
parent 9c988b34d0
commit a040acfaa5
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -319,7 +319,7 @@ async def duplicate_node(duplicate_data: schemas.NodeDuplicate, node: Node = Dep
status_code=status.HTTP_204_NO_CONTENT,
dependencies=[Depends(has_privilege("Node.PowerMgmt"))]
)
async def start_node(start_data: dict, node: Node = Depends(dep_node)) -> None:
async def start_node(start_data: Optional[dict] = None, node: Node = Depends(dep_node)) -> None:
"""
Start a node.