Module: check_mk
Branch: master
Commit: b1cdb703403808c627d38fbde132399eff3cd347
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1cdb703403808…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Apr 3 13:05:08 2013 +0200
FIX: Monitored on site attribute always has valid default value
---
ChangeLog | 1 +
web/htdocs/wato.py | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7ae071e..038d495 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -108,6 +108,7 @@
custom notes
* FIX: Writing one clean message to webserver error_log when write fails
* FIX: Escaping html entities when displaying comment fields
+ * FIX: Monitored on site attribute always has valid default value
Notifications:
* FIX: fix event type for recoveries
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1868304..6e04332 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7073,12 +7073,11 @@ def declare_site_attribute():
declare_host_attribute(SiteAttribute(), show_in_table = True, show_in_folder =
True)
def default_site():
- deflt = None
for id, site in config.sites.items():
if not "socket" in site \
or site["socket"] == "unix:" +
defaults.livestatus_unix_socket:
return id
- return None
+ return config.sites.keys()[0]
class SiteAttribute(Attribute):
def __init__(self):