Skip to content

Commit d87cff7

Browse files
authored
Merge pull request #2287 from munahaf/Inappropriate_Logic-5node.py11635999804432162276.diff
Update a test expression to remove a logical short circuit
2 parents 6f345bb + ffb58a4 commit d87cff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gns3server/controller/node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def _node_data(self, properties=None):
485485

486486
# None properties are not be send. Because it can mean the emulator doesn't support it
487487
for key in list(data.keys()):
488-
if data[key] is None or data[key] is {} or key in self.CONTROLLER_ONLY_PROPERTIES:
488+
if data[key] is None or data[key] == {} or key in self.CONTROLLER_ONLY_PROPERTIES:
489489
del data[key]
490490

491491
return data

0 commit comments

Comments
 (0)