Module: check_mk
Branch: master
Commit: cb2d14e65882bef3158c89411975901dcd6f09f9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb2d14e65882be…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 19 10:30:10 2011 +0100
Fix timeperiod definitions created by Check_MK
---
modules/check_mk.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 2e3a451..1b8e426 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1840,7 +1840,7 @@ def create_nagios_config_timeperiods(outfile):
outfile.write(" alias\t\t\t\t%s\n" %
tp["alias"].encode("utf-8"))
for key, value in tp.items():
if key != "alias":
- times = ", ".join([ ("%s-%s" % (fr, to)) for (fr,
to) in value ])
+ times = ",".join([ ("%s-%s" % (fr, to)) for (fr,
to) in value ])
if times:
outfile.write(" %-20s\t\t%s\n" % (key, times))
outfile.write("}\n\n")