Module: check_mk
Branch: master
Commit: bb8344ecc1db39e3d50c861176d0de27d9cf27ae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bb8344ecc1db39…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Mon Jan 9 15:12:55 2012 +0100
Pass varprefix to error handler
---
web/htdocs/wato.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9fc43ae..a74c910 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4922,12 +4922,12 @@ def mode_edit_timeperiod(phase):
if not end:
end = "24:00"
- begin, end = [ parse_bound(w, b) for (w,b) in [ ("from", begin),
("to", end) ]]
+ begin, end = [ parse_bound(varprefix, w, b) for (w,b) in [ ("from",
begin), ("to", end) ]]
ranges.append((begin, end))
return ranges
- def parse_bound(what, bound):
+ def parse_bound(vp, what, bound):
# Fully specified
if re.match("^(24|[0-1][0-9]|2[0-3]):[0-5][0-9]$", bound):
return bound