From 3f679bd106d1a4ff194c44d9807e227309c98383 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 2 Mar 2019 16:39:05 +0700 Subject: [PATCH] Locked state should not be used when duplicating a node. --- gns3server/controller/project.py | 1 + gns3server/schemas/node.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index a7407a69..f163a92c 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -1070,6 +1070,7 @@ class Project: data['x'] = x data['y'] = y data['z'] = z + data['locked'] = False # duplicated node must not be locked new_node_uuid = str(uuid.uuid4()) new_node = await self.add_node( node.compute, diff --git a/gns3server/schemas/node.py b/gns3server/schemas/node.py index b48372ed..5d3cc11a 100644 --- a/gns3server/schemas/node.py +++ b/gns3server/schemas/node.py @@ -284,10 +284,6 @@ NODE_DUPLICATE_SCHEMA = { "z": { "description": "Z position of the node", "type": "integer" - }, - "locked": { - "description": "Whether the element locked or not", - "type": "boolean" } }, "additionalProperties": False,