1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Merge pull request #2287 from munahaf/Inappropriate_Logic-5node.py11635999804432162276.diff

Update a test expression to remove a logical short circuit
This commit is contained in:
Jeremy Grossmann 2023-09-20 14:31:04 +07:00 committed by GitHub
commit d87cff7fd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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