mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Bugfix: if you define __eq__, you should define __ne__ too
This commit is contained in:
parent
5d29a2eabd
commit
a2bc6b4b26
2 changed files with 38 additions and 0 deletions
|
@ -38,6 +38,9 @@ class Host:
|
|||
def __eq__(self, other):
|
||||
return self.name == other.name
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
def serialize(self):
|
||||
groups = []
|
||||
for group in self.groups:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue