[supervision] ignore internal changes stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Sep 2009 14:05:20 +0200
branchstable
changeset 3131 596f893451c0
parent 3130 2486163c4630
child 3133 dda4c0e2c330
[supervision] ignore internal changes
sobjects/supervising.py
--- a/sobjects/supervising.py	Wed Sep 09 12:29:06 2009 +0200
+++ b/sobjects/supervising.py	Wed Sep 09 14:05:20 2009 +0200
@@ -23,6 +23,8 @@
     accepts = ('Any',)
 
     def call(self, session, *args):
+        if session.is_super_session or session.repo.config.repairing:
+            return # ignore changes triggered by hooks or maintainance shell
         dest = self.config['supervising-addrs']
         if not dest: # no supervisors, don't do this for nothing...
             return