From 4d7b3fb9d6e79682a562546922fa27b44e0d1ed0 Mon Sep 17 00:00:00 2001 From: munahaf Date: Wed, 20 Sep 2023 06:49:47 +0000 Subject: [PATCH] Comment: Updated a test expression to remove a logical short circuit. --- gns3server/controller/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/node.py b/gns3server/controller/node.py index f07b25df..fd3e625b 100644 --- a/gns3server/controller/node.py +++ b/gns3server/controller/node.py @@ -485,7 +485,7 @@ class Node: # None properties are not be send. Because it can mean the emulator doesn't support it for key in list(data.keys()): - if data[key] is None or data[key] is {} or key in self.CONTROLLER_ONLY_PROPERTIES: + if data[key] is None or data[key] == {} or key in self.CONTROLLER_ONLY_PROPERTIES: del data[key] return data