Module: check_mk
Branch: master
Commit: 7c97bef7cf318176c59fc70f5d619bf9fd6d71fb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c97bef7cf3181…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Sep 14 14:48:50 2011 +0200
fix exception when using status_host while local site is offline
---
ChangeLog | 1 +
web/htdocs/livestatus.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3dc8994..8bc6e0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1.1.12b1:
Multisite:
* FIX: fix rescheduling of host check
+ * FIX: fix exception when using status_host while local site is offline
* Added some missing i18n strings in general HTML functions
* Added display_option "w" to disable limit messages and livestatus errors
in views
* Service Perfdata Sorters are sorting correctly now
diff --git a/web/htdocs/livestatus.py b/web/htdocs/livestatus.py
index baed268..258658a 100644
--- a/web/htdocs/livestatus.py
+++ b/web/htdocs/livestatus.py
@@ -392,9 +392,9 @@ class MultiSiteConnection(Helpers):
i = 0
for name, site, connection in self.connections:
if name == sitename:
- break
+ del self.connections[i]
+ return
i += 1
- del self.connections[i]
# Status host: A status host helps to prevent trying to connect