diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 70a6133a..271d028a 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2675,6 +2675,9 @@ class Machine(base_classes_crans): ports.sort() self._set(champ, map(lambda x: ':'.join(map(str, x)), ports)) + def __hash__(self): + """Retourne un hash de l'objet Machine""" + return hash(self.nom()) class MachineFixe(Machine): """ Classe de définition d'une machine fixe """