Fix symlink not being created for duplicated IOU devices. Fixes https://github.com/GNS3/gns3-gui/issues/2699

This commit is contained in:
grossmj committed 2019-02-19 00:09:59 +08:00
1 parent 4ecd3b2015
commit 589c9754e8
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -276,7 +276,7 @@ class BaseManager:
destination_dir = destination_node.working_dir
try:
shutil.rmtree(destination_dir)
shutil.copytree(source_node.working_dir, destination_dir)
shutil.copytree(source_node.working_dir, destination_dir, symlinks=True, ignore_dangling_symlinks=True)
except OSError as e:
raise aiohttp.web.HTTPConflict(text="Can't duplicate node data: {}".format(e))