Commit ae9b34b1 by James Cammarata

Fix for equality checking in Host to make sure things are like types

parent fa9ea32a
...@@ -36,6 +36,8 @@ class Host: ...@@ -36,6 +36,8 @@ class Host:
return self.deserialize(data) return self.deserialize(data)
def __eq__(self, other): def __eq__(self, other):
if not isinstance(other, Host):
return False
return self.name == other.name return self.name == other.name
def __ne__(self, other): def __ne__(self, other):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment