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

Remove redundant check for group membership in add_host (#30530)

This commit is contained in:
jctanner 2017-09-18 20:22:30 -04:00 committed by GitHub
parent f3865e370c
commit 5aebcd4f7f

View file

@ -204,7 +204,7 @@ class InventoryData(object):
else: else:
h = self.hosts[host] h = self.hosts[host]
if g and h not in g.get_hosts(): if g:
g.add_host(h) g.add_host(h)
self._groups_dict_cache = {} self._groups_dict_cache = {}
display.debug("Added host %s to group %s" % (host, group)) display.debug("Added host %s to group %s" % (host, group))