mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Fix the error about appliance ID not found (#1075)
* Fix the error about appliance ID not found * Copy appliance data before editing it
This commit is contained in:
1 parent
b9e2b7945a
commit
c8c991af78
4 files changed
+50
-30
No files matched your search
@@ -32,9 +32,13 @@ class Appliance:
|
||||
def __init__(self, appliance_id, data, builtin=False):
|
||||
if appliance_id is None:
|
||||
self._id = str(uuid.uuid4())
|
||||
elif isinstance(appliance_id, uuid.UUID):
|
||||
self._id = str(appliance_id)
|
||||
else:
|
||||
self._id = appliance_id
|
||||
self._data = data
|
||||
self._data = data.copy()
|
||||
if "appliance_id" in self._data:
|
||||
del self._data["appliance_id"]
|
||||
|
||||
# Version of the gui before 2.1 use linked_base
|
||||
# and the server linked_clone
|
||||
|
||||
Reference in new issue
Block a user