mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
parent
e385c91fa5
commit
750adbaa27
3 changed files with 3 additions and 5 deletions
|
@ -205,7 +205,7 @@ class InventoryDirectory(object):
|
|||
# because the __eq__/__ne__ methods in Host() compare the
|
||||
# name fields rather than references, we use id() here to
|
||||
# do the object comparison for merges
|
||||
if id(self.hosts[host.name]) != id(host):
|
||||
if self.hosts[host.name] != host:
|
||||
# different object, merge
|
||||
self._merge_hosts(self.hosts[host.name], host)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue