1
0
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:
Julien Duponchelle 2016-08-16 19:16:05 +02:00
parent 9694850465
commit a4023c0298
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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