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

Fixes topology loading issue.

This commit is contained in:
grossmj 2014-04-10 15:04:39 -06:00
parent b614aa8290
commit 4ab9b4acc7
2 changed files with 8 additions and 7 deletions

View File

@ -200,12 +200,13 @@ class IOU(IModule):
self._iouyap = request["iouyap"]
log.info("iouyap path set to {}".format(self._iouyap))
if "working_dir" in request and self._working_dir != request["working_dir"]:
self._working_dir = request["working_dir"]
log.info("this server is local with working directory path to {}".format(self._working_dir))
for iou_id in self._iou_instances:
iou_instance = self._iou_instances[iou_id]
iou_instance.working_dir = self._working_dir
if "working_dir" in request:
if self._working_dir != request["working_dir"]:
self._working_dir = request["working_dir"]
log.info("this server is local with working directory path to {}".format(self._working_dir))
for iou_id in self._iou_instances:
iou_instance = self._iou_instances[iou_id]
iou_instance.working_dir = self._working_dir
else:
self._remote_server = True
self._working_dir = os.path.join(self._projects_dir, request["project_name"])

View File

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