diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index b9e48449..20b89cff 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2794,7 +2794,7 @@ class Machine(BaseClasseCrans): else: proprio = self.proprietaire() - if isinstance(proprio, Adherent) and proprio.adherentPayant(): + if not isinstance(proprio, Adherent) or proprio.adherentPayant(): try: net = config.NETs['adherents'] pool_ip = lister_ip_dispo('adherents')