Module: check_mk
Branch: master
Commit: 6faeec633a48c1623982615202e616c8d1afdc72
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6faeec633a48c1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 19 14:24:38 2012 +0100
Repeated encoding FIX. It must have been lost somehow oO
---
modules/check_mk.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index b331c5b..856325e 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1784,7 +1784,7 @@ define hostgroup {
hostgroup_name\t\t%s
alias\t\t\t\t%s
}
-""" % (hg, alias))
+""" % (hg, alias.encode('utf-8')))
# No creation of host groups but we need to define
# default host group
@@ -1814,7 +1814,7 @@ define servicegroup {
servicegroup_name\t\t%s
alias\t\t\t\t%s
}
-""" % (sg, alias))
+""" % (sg, alias.encode('utf-8')))
def create_nagios_config_contactgroups(outfile):
if define_contactgroups:
@@ -1831,7 +1831,7 @@ def create_nagios_config_contactgroups(outfile):
outfile.write("\ndefine contactgroup {\n"
" contactgroup_name\t\t%s\n"
" alias\t\t\t\t%s\n"
- "}\n" % (name, alias))
+ "}\n" % (name, alias.encode('utf-8')))
def create_nagios_config_commands(outfile):