1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Some changes with config files on Windows.

This commit is contained in:
Jeremy 2015-02-27 18:08:34 -07:00
parent 0e8b8fa66f
commit 84870bf736
3 changed files with 10 additions and 4 deletions

View File

@ -171,7 +171,12 @@ def main():
host = server_config["host"]
port = int(server_config["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__':
main()

View File

@ -179,8 +179,9 @@ class Dynamips(BaseManager):
:param project: Project instance
"""
for vm in project.vms:
yield from vm.hypervisor.set_working_dir(project.module_working_directory(self.module_name.lower()))
for vm in self._vms:
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():
if device.project.id == project.id:

View File

@ -23,5 +23,5 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
__version__ = "1.3.dev1"
__version__ = "1.3.dev2"
__version_info__ = (1, 3, 0, 0)