mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-15 21:08:55 +00:00
By default project auto close when you exit client
This commit is contained in:
parent
9694850465
commit
a4023c0298
@ -79,7 +79,7 @@ def import_project(controller, project_id, stream, location=None, name=None, kee
|
|||||||
# To avoid unexpected behavior (project start without manual operations just after import)
|
# To avoid unexpected behavior (project start without manual operations just after import)
|
||||||
topology["auto_start"] = False
|
topology["auto_start"] = False
|
||||||
topology["auto_open"] = False
|
topology["auto_open"] = False
|
||||||
topology["auto_close"] = False
|
topology["auto_close"] = True
|
||||||
|
|
||||||
# Modify the compute id of the node depending of compute capacity
|
# Modify the compute id of the node depending of compute capacity
|
||||||
if not keep_compute_id:
|
if not keep_compute_id:
|
||||||
|
@ -62,7 +62,7 @@ class Project:
|
|||||||
:param status: Status of the project (opened / closed)
|
:param status: Status of the project (opened / closed)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, name=None, project_id=None, path=None, controller=None, status="opened", filename=None, auto_start=False, auto_open=False, auto_close=False):
|
def __init__(self, name=None, project_id=None, path=None, controller=None, status="opened", filename=None, auto_start=False, auto_open=False, auto_close=True):
|
||||||
|
|
||||||
self._controller = controller
|
self._controller = controller
|
||||||
assert name is not None
|
assert name is not None
|
||||||
|
Loading…
Reference in New Issue
Block a user