mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix for equality checking in Host to make sure things are like types
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user