1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
James Cammarata 2015-09-25 14:53:43 -04:00
parent fa9ea32a86
commit ae9b34b1d9

View file

@ -36,6 +36,8 @@ class Host:
return self.deserialize(data)
def __eq__(self, other):
if not isinstance(other, Host):
return False
return self.name == other.name
def __ne__(self, other):