Petite vrification supplmentaire...
darcs-hash:20060919051354-68412-335c44a3fc5a90488ae80869e2e7ab3fbe82bfa9.gz
This commit is contained in:
parent
3f7aa45f0f
commit
ee3138cdee
1 changed files with 5 additions and 1 deletions
|
@ -424,7 +424,11 @@ for ip, id_p2p, nombre in fraudeurs:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Récupération des ref de la machine
|
# Récupération des ref de la machine
|
||||||
machine = ldap.search('ipHostNumber=%s' % ip, 'w' )['machine'][0]
|
machines = ldap.search('ipHostNumber=%s' % ip, 'w' )['machine']
|
||||||
|
if len(machine) == 0:
|
||||||
|
# La machine a ete supprimee entre temps
|
||||||
|
continue
|
||||||
|
machine = machines[0]
|
||||||
hostname = machine.nom()
|
hostname = machine.nom()
|
||||||
proprio = machine.proprietaire()
|
proprio = machine.proprietaire()
|
||||||
blacklist = proprio.blacklist()
|
blacklist = proprio.blacklist()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue