code: def linkify_hostgroups_hosts(self, hosts):
          
          for hostgroup in self:
              members = hostgroup.get_hosts()
              # The new members identifiers list
              new_members = []
              for member in members:
                  # member is an host name
                  member = member.strip()
                  if not member:  # void entry, skip this
                      continue
  
                  if member == '*':
                      # All the hosts identifiers list
                      new_members.extend(list(hosts.items.keys()))
                  else:
                      host = hosts.find_by_name(member)
                      if host is not None:
                          new_members.append(host.uuid)
                          if hostgroup.uuid not in host.hostgroups:
                              host.hostgroups.append(hostgroup.uuid)
                      else:
                          hostgroup.add_unknown_members(member)
  
              # Make members unique
              new_members = list(set(new_members))
  
              # We find the id, we replace the names
              hostgroup.replace_members(new_members)
docs: We just search for each hostgroup the id of the hosts
          and replace the names by the found identifiers
  
          :param hosts: object Hosts
          :type hosts: alignak.objects.host.Hosts
          :return: None