Module: check_mk
Branch: master
Commit: c4ee98c914bd3680509346cf6d4e15fd75d94b07
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c4ee98c914bd36…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Jan 13 13:17:29 2015 +0100
#1212 FIX Fixed default value in wato parameter page for timeperiods
In some cases wato has shown the wrong default values on the parameter page for all rules
based on time periods (e.g. check period, notification period)
---
.werks/1212 | 12 ++++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 3 +++
3 files changed, 16 insertions(+)
diff --git a/.werks/1212 b/.werks/1212
new file mode 100644
index 0000000..f225e1f
--- /dev/null
+++ b/.werks/1212
@@ -0,0 +1,12 @@
+Title: Fixed default value in wato parameter page for timeperiods
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1421151221
+
+In some cases wato has shown the wrong default values on the parameter page for all
rules
+based on time periods (e.g. check period, notification period)
+
diff --git a/ChangeLog b/ChangeLog
index f9d3804..6531c0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,7 @@
* 1794 FIX: Fix exception in WATO service list in case of vanished checks
* 1805 FIX: Changing roles marks sites where users can login dirty for sync now...
* 1211 FIX: Fixed g_git_messages error on activate changes...
+ * 1212 FIX: Fixed default value in wato parameter page for timeperiods...
Notifications:
* 1662 notification plugin spectrum: finalized script. now able to handle host
notications
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 362ce2e..34599bb 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9806,6 +9806,9 @@ class TimeperiodSelection(ElementSelection):
[ (name, "%s - %s" % (name, tp["alias"])) for (name, tp)
in timeperiods.items() ])
return elements
+ def default_value(self):
+ return "24x7"
+
# Check if a timeperiod is currently in use and cannot be deleted
# Returns a list of occurrances.
# Possible usages: