[attributs] +:
This commit is contained in:
parent
39bc969e22
commit
649a4e6691
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ class loginShell(Attr):
|
|||
def parse_value(self, shell, ldif):
|
||||
with open('/etc/shells') as f:
|
||||
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)
|
||||
self.value = shell
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue