Merge pull request #1092 from GNS3/fix_vpcs_name

Fix the initial startup for VPCS is not used
This commit is contained in:
Jeremy Grossmann authored and GitHub committed 2017-06-28 16:09:54 +08:00
commit 799a2d376e
6 files changed
+29 -6

No files matched your search

+2 -1
View File
@@ -325,11 +325,12 @@ class Project:
Create a node from an appliance
"""
try:
template = copy.copy(self.controller.appliances[appliance_id].data)
template = self.controller.appliances[appliance_id].data
except KeyError:
msg = "Appliance {} doesn't exist".format(appliance_id)
log.error(msg)
raise aiohttp.web.HTTPNotFound(text=msg)
print(template)
template["x"] = x
template["y"] = y
node_type = template.pop("node_type")