Module: check_mk
Branch: master
Commit: 193a3fcfaefb552d77fa259c681a65a007e343de
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=193a3fcfaefb55…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 16 10:36:08 2017 +0200
4716 FIX Fixed broken config when selecing "empty" icon as host/service icon
image
Change-Id: I08127cdbfe331158b421528f5b46be327d4493fd
---
.werks/4716 | 11 +++++++++++
modules/check_mk.py | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/4716 b/.werks/4716
new file mode 100644
index 0000000..1a85489
--- /dev/null
+++ b/.werks/4716
@@ -0,0 +1,11 @@
+Title: Fixed broken config when selecing "empty" icon as host/service icon
image
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1494923749
+
+
diff --git a/modules/check_mk.py b/modules/check_mk.py
index f86628d..3141fa7 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2974,7 +2974,9 @@ def extra_host_attributes(hostname):
if values:
if key[0] == "_":
key = key.upper()
- attrs[key] = values[0]
+
+ if values[0] != None:
+ attrs[key] = values[0]
return attrs