[lc_ldap] corrections
This commit is contained in:
parent
a36bafa021
commit
5f3c3d56fb
3 changed files with 81 additions and 24 deletions
|
@ -41,7 +41,7 @@ def ip_of_mid(mid):
|
|||
else:
|
||||
raise ValueError("Mid dans aucune plage: %d" % mid)
|
||||
|
||||
return netaddr.IPAddress(netaddr.IPNetwork(config.NETs[net]).first + mid - plage[0])
|
||||
return netaddr.IPAddress(netaddr.IPNetwork(config.NETs[net][0]).first + mid - plage[0])
|
||||
|
||||
def strip_accents(a):
|
||||
""" Supression des accents de la chaîne fournie"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue