[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Sebastien Coavoux s.coavoux at free.fr
Tue Feb 28 22:05:40 UTC 2012


The following commit has been merged in the debian/master branch:
commit ff0b511d1c6dbc2229d2d8351d75fd0e4f5cef09
Author: Sebastien Coavoux <s.coavoux at free.fr>
Date:   Wed Sep 28 22:11:33 2011 +0200

    I give up for quering the database only once, I will do it properly with 2 queries

diff --git a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
index 4186bd7..0328ba5 100644
--- a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
+++ b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
@@ -166,7 +166,7 @@ class Ndodb_Mysql_broker(BaseModule):
         elif row1[0] is None:
             return 1
         #No previous instance found return max
-        elif row2[0] is None:
+        elif row2 is None :
             return row1[0]
         #Return the previous instance
         else:

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list