From bcafe0e7a29ca68dfeec4126861a99f40adc8abb Mon Sep 17 00:00:00 2001 From: chove Date: Sun, 7 Nov 2004 19:20:38 +0100 Subject: [PATCH] envoie d'un mail roots lorsqu'il y a une modif sur un serveur darcs-hash:20041107182038-4ec08-644e7a8d3948ed698cab17f72207498602136b87.gz --- gestion/ldap_crans.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 9488a106..e8c5a949 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2001,6 +2001,10 @@ class machine(base_classes_crans) : if self.proprietaire().__class__ == crans : self.services_to_restart('autostatus') + # On envoie un mail pour annoncer le changement + if self.proprietaire().__class__ == crans : + self.services_to_restart('mail_modification_machine',[self.ip()]) + # Remise à zéro self.modifs=[]