[arpwatch] On n'envoie pas de mail pour les évènement inintéressants.

This commit is contained in:
Vincent Le Gallic 2013-10-28 20:14:23 +01:00
parent cb58f8f6b9
commit 7560f05a1e
5 changed files with 51 additions and 14 deletions

View file

@ -361,7 +361,7 @@ def ressuscite(adh, oldmachine):
except EnvironmentError, c: err += c.args[0] + '\n'
elif len(c.args)>1 and c.args[1] == 3 and isadm:
# Mac douteuse
no, res = dlg.yesno(text=u"L\'adresse MAC ne correspond à aucun constructeur, continuer ?",
no = dlg.yesno(text=u"L\'adresse MAC ne correspond à aucun constructeur, continuer ?",
title=u"Adresse MAC")
if not no:
try: machine.mac(str(oldmachine.mac()), 1)