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:
parent
fa9ea32a86
commit
ae9b34b1d9
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue