From 69ab9e3e54d388318f4f847bdffb5e0d3d9f5823 Mon Sep 17 00:00:00 2001 From: glondu Date: Tue, 17 Apr 2007 10:38:19 +0200 Subject: [PATCH] On notifie tout le monde quand on change les exemptions d'une machine. darcs-hash:20070417083819-68412-01050f497651ec88b4c9d4213c5c22dbf174302a.gz --- gestion/ldap_crans.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index b30ea8f1..b5bc071b 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2850,6 +2850,9 @@ class Machine(BaseClasseCrans): if 'exempt' in self.modifs or ('ipHostNumber' in self.modifs and self.exempt()): self.services_to_restart('surveillance_exemptions') + if 'exempt' in self.modifs: + self.services_to_restart('mail_modif', ['ip=%s' % self.ip()]) + # Synchronisation avec la base pgsql pour la liste des machines if 'ipHostNumber' in self.modifs: self.services_to_restart('surveillance_machines')