From abbe3d3a31dba3646d678d98cf387afc9f6683f2 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 5 Feb 2018 16:42:29 +0800 Subject: [PATCH] Fix "Change of linked base VM doesn't work with templates migrated from 2.0" --- gns3server/controller/appliance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/appliance.py b/gns3server/controller/appliance.py index 6b0b97f3..8b7b2995 100644 --- a/gns3server/controller/appliance.py +++ b/gns3server/controller/appliance.py @@ -44,7 +44,9 @@ class Appliance: # Version of the gui before 2.1 use linked_base # and the server linked_clone if "linked_base" in self._data: - self._data["linked_clone"] = self._data.pop("linked_base") + linked_base = self._data.pop("linked_base") + if "linked_clone" not in self._data: + self._data["linked_clone"] = linked_base if data["node_type"] == "iou" and "image" in data: del self._data["image"] self._builtin = builtin