code: def linkify_h_by_h(self):
          
          for host in self:
              # The new member list
              new_parents = []
              for parent in getattr(host, 'parents', []):
                  parent = parent.strip()
                  o_parent = self.find_by_name(parent)
                  if o_parent is not None:
                      new_parents.append(o_parent.uuid)
                  else:
                      err = "the parent '%s' for the host '%s' is unknown!" % (parent,
                                                                               host.get_name())
                      self.add_error(err)
              # We find the id, we replace the names
              host.parents = new_parents
docs: Link hosts with their parents
  
          :return: None