Module: check_mk
Branch: master
Commit: 9f927a69264527384ab62ed89736bf1cc6ccc2d7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9f927a69264527…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jun 24 15:42:32 2014 +0200
FIX livedump: Fix exception in case no contact groups are defined for a service
---
.werks/988 | 9 +++++++++
ChangeLog | 3 +++
doc/treasures/livedump/livedump | 3 ++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/988 b/.werks/988
new file mode 100644
index 0000000..79698b3
--- /dev/null
+++ b/.werks/988
@@ -0,0 +1,9 @@
+Title: livedump: Fix exception in case no contact groups are defined for a service
+Level: 1
+Component: livestatus
+Class: fix
+State: unknown
+Version: 1.2.5i5
+Date: 1403617324
+
+
diff --git a/ChangeLog b/ChangeLog
index d610c5c..5fb7d96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
Checks & Agents:
* 0994 FIX: agent plugin smart: fixed syntax error
+ Livestatus:
+ * 0988 FIX: livedump: Fix exception in case no contact groups are defined for a
service
+
1.2.5i4:
Core & Setup:
diff --git a/doc/treasures/livedump/livedump b/doc/treasures/livedump/livedump
index 337b7c4..8feb977 100755
--- a/doc/treasures/livedump/livedump
+++ b/doc/treasures/livedump/livedump
@@ -96,7 +96,8 @@ def livedump_config():
encode_row(row)
check_commands.add(row["check_command"])
row["contactsstring"] =
(",".join(row["contacts"])).encode("utf-8")
- row["contact_groups"] =
(",".join(row["contact_groups"])).encode("utf-8")
+ if "contact_groups" in row:
+ row["contact_groups"] =
(",".join(row["contact_groups"])).encode("utf-8")
# Dump host config
query = \