Module: check_mk
Branch: master
Commit: 4528dce3bb7ff3817cb561a4df283a9677d8e4ca
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4528dce3bb7ff3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 23 11:57:40 2016 +0100
4222 FIX Services of host page: Fixed encoding issue for hosts with umlauts in alias
Change-Id: I920541afd5372e886859e7fee2b22e11ea3f4517
---
.werks/4222 | 9 +++++++++
ChangeLog | 2 +-
modules/automation.py | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.werks/4222 b/.werks/4222
new file mode 100644
index 0000000..4eb289d
--- /dev/null
+++ b/.werks/4222
@@ -0,0 +1,9 @@
+Title: Services of host page: Fixed encoding issue for hosts with umlauts in alias
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.4.0i4
+Date: 1482490622
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index ad9906f..03819ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -33,6 +33,7 @@
* 4146 FIX: Fixed broken "Global settings" when having the Event Console
disabled via "omd config"
* 4218 FIX: Disabling replication with a site did not clear the changes for this site
(1.4.0i3 regression)
* 4221 FIX: Fixed "analyse parameters" page for services with umlauts in
names
+ * 4222 FIX: Services of host page: Fixed encoding issue for hosts with umlauts in
alias
Notifications:
* 4197 FIX: Fix sending notification to global fallback email address
@@ -51,7 +52,6 @@
NOTE: Please refer to the migration notes!
-
1.4.0i3:
Core & Setup:
* 3978 FIX: mkbackup: Fixed backup to some CIFS shares ([Errno 13] Permission denied)
'...')...
diff --git a/modules/automation.py b/modules/automation.py
index e18c2e1..48ff0b0 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -1067,7 +1067,7 @@ def replace_core_macros(hostname, commandline):
get_host_attributes(hostname, tags_of_host(hostname)))
load_resource_file(macros)
for varname, value in macros.items():
- commandline = commandline.replace(varname, str(value))
+ commandline = commandline.replace(varname, "%s" % value)
return commandline