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

(cherry picked from commit 5aebcd4f7f)
pull/30580/head
jctanner 8 years ago committed by Toshio Kuratomi
parent d724bb584a
commit 1af9ab1b14

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

Loading…
Cancel
Save