mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-12 17:10:55 +00:00
Some changes with config files on Windows.
This commit is contained in:
parent
0e8b8fa66f
commit
84870bf736
@ -171,7 +171,12 @@ def main():
|
|||||||
host = server_config["host"]
|
host = server_config["host"]
|
||||||
port = int(server_config["port"])
|
port = int(server_config["port"])
|
||||||
server = Server(host, port)
|
server = Server(host, port)
|
||||||
server.run()
|
try:
|
||||||
|
server.run()
|
||||||
|
except Exception as e:
|
||||||
|
log.critical("Critical error while running the server: {}".format(e), exc_info=1)
|
||||||
|
# TODO: send exception to Sentry
|
||||||
|
return
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -179,8 +179,9 @@ class Dynamips(BaseManager):
|
|||||||
:param project: Project instance
|
:param project: Project instance
|
||||||
"""
|
"""
|
||||||
|
|
||||||
for vm in project.vms:
|
for vm in self._vms:
|
||||||
yield from vm.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
|
if vm.project.id == project.id:
|
||||||
|
yield from vm.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
|
||||||
|
|
||||||
for device in self._devices.values():
|
for device in self._devices.values():
|
||||||
if device.project.id == project.id:
|
if device.project.id == project.id:
|
||||||
|
@ -23,5 +23,5 @@
|
|||||||
# or negative for a release candidate or beta (after the base version
|
# or negative for a release candidate or beta (after the base version
|
||||||
# number has been incremented)
|
# number has been incremented)
|
||||||
|
|
||||||
__version__ = "1.3.dev1"
|
__version__ = "1.3.dev2"
|
||||||
__version_info__ = (1, 3, 0, 0)
|
__version_info__ = (1, 3, 0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user