[attributs] +:

This commit is contained in:
Antoine Durand-Gasselin 2010-10-17 16:31:56 +02:00
parent 39bc969e22
commit 649a4e6691

View file

@ -454,7 +454,7 @@ class loginShell(Attr):
def parse_value(self, shell, ldif): def parse_value(self, shell, ldif):
with open('/etc/shells') as f: with open('/etc/shells') as f:
shells = [ l.strip() for l in f.readlines() if not l.startswith('#') ] shells = [ l.strip() for l in f.readlines() if not l.startswith('#') ]
if (shell not in shells) if (shell not in shells):
raise ValueError("Shell %s invalide" % shell) raise ValueError("Shell %s invalide" % shell)
self.value = shell self.value = shell