mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
fix: Set auto_close=False on project_create so projects stay open when clients disconnect
This commit is contained in:
1 file changed
+2
-2
@@ -297,8 +297,8 @@ async def project_get(
|
|||||||
async def project_create(
|
async def project_create(
|
||||||
name: Annotated[str, Field(description="Project name")],
|
name: Annotated[str, Field(description="Project name")],
|
||||||
) -> list[dict[str, Any]]:
|
) -> list[dict[str, Any]]:
|
||||||
"""Create a new GNS3 project."""
|
"""Create a new GNS3 project. auto_close is set to False so the project stays open when clients disconnect."""
|
||||||
params = {"name": name}
|
params = {"name": name, "auto_close": False}
|
||||||
return await asyncio.to_thread(_run_handler_sync, create_project_handler, params)
|
return await asyncio.to_thread(_run_handler_sync, create_project_handler, params)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user