Skip to content

Commit

Permalink
Merge pull request #2287 from munahaf/Inappropriate_Logic-5node.py116…
Browse files Browse the repository at this point in the history
…35999804432162276.diff

Update a test expression to remove a logical short circuit
  • Loading branch information
grossmj authored Sep 20, 2023
2 parents 6f345bb + ffb58a4 commit d87cff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gns3server/controller/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def _node_data(self, properties=None):

# 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
Expand Down

0 comments on commit d87cff7

Please sign in to comment.