This commit is contained in:
Frédéric Péters 2014-03-31 14:40:11 +02:00
parent 91f8ccbeff
commit 9050dccc6b
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ for entry in ldap_conn.search_s("dc=win,dc=info,dc=pcf", ldap.SCOPE_SUBTREE, "ob
mail = entry[1]['mail'][0]
except KeyError:
continue
users.append[{'username': username, 'mail': mail}]
users.append({'username': username, 'mail': mail})
fd = file(options.output_filename, 'w')
print >> fd, file(cfg.get('general', 'template')).read()