From 3663d877cc959cc17a9cccf9db27d2cce7c57443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 16 May 2013 03:01:11 +0200 Subject: [PATCH] [lc_ldap/test] fil-adherents -> /dev/null --- lc_ldap.py | 2 +- test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lc_ldap.py b/lc_ldap.py index 335cae4..1923ad8 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -273,7 +273,7 @@ class lc_ldap(ldap.ldapobject.LDAPObject, object): ldif['objectClass'] = ['machineWifi'] assert isinstance(owner, adherent) or isinstance(owner, club) - elif realm in ["adherents", "fil-adherents", "fil-v6", "personnel-ens"]: + elif realm in ["adherents", "fil-v6", "personnel-ens"]: ldif['objectClass'] = ['machineFixe'] assert isinstance(owner, adherent) or isinstance(owner, club) diff --git a/test.py b/test.py index 2ef9878..bd78c90 100755 --- a/test.py +++ b/test.py @@ -171,7 +171,7 @@ except: else: print OK - tests_machines(adherent.dn, ["adherents", "fil-adherents", "fil-v6", "personnel-ens"]) + tests_machines(adherent.dn, ["adherents", "fil-v6", "personnel-ens"]) tests_machines(adherent.dn, ["wifi", "wifi-v6"], ipsec=True)