Module: check_mk
Branch: master
Commit: 00be680a1f55d7c4081e294b41adbf85dea672e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00be680a1f55d7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 11 16:50:48 2012 +0200
WATO: Always allow to configure timeperiod 7X24
---
web/htdocs/wato.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 06e65f7..4becf6d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6175,9 +6175,8 @@ class TimeperiodSelection(ElementSelection):
def get_elements(self):
timeperiods = load_timeperiods()
- if "7X24" not in timeperiods:
- timeperiods["7X24"] = _("Always")
- elements = dict([ (name, "%s - %s" % (name, tp["alias"])) for
(name, tp) in timeperiods.items() ])
+ elements = dict([ ("7X24", _("Always")) ] + \
+ [ (name, "%s - %s" % (name, tp["alias"])) for (name, tp)
in timeperiods.items() ])
return elements
# Check if a timeperiod is currently in use and cannot be deleted