Module: check_mk
Branch: master
Commit: 4243c5ad51737d4c3d72de73fec3dd32bdb635de
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4243c5ad51737d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Dec 8 17:44:10 2013 +0100
FIX Fix exception in WATO host editor on custom tag without topic
When you've defined a host tag group in WATO that has no topic,
then the host edit dialog would be interrupted with an exception.
A simple workaround to this is to alwasy define a topic.
The problem has now been fixed. It had shortly been introduced by fixing a
problem appearing when you used a slash in the name of a tag group.
---
.werks/57 | 13 +++++++++++++
ChangeLog | 3 +++
web/htdocs/wato.py | 2 +-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/57 b/.werks/57
new file mode 100644
index 0000000..c09024b
--- /dev/null
+++ b/.werks/57
@@ -0,0 +1,13 @@
+Title: Fix exception in WATO host editor on custom tag without topic
+Level: 2
+Component: wato
+Version: 1.2.3i8
+Date: 1386520925
+Class: fix
+
+When you've defined a host tag group in WATO that has no topic,
+then the host edit dialog would be interrupted with an exception.
+A simple workaround to this is to alwasy define a topic.
+
+The problem has now been fixed. It had shortly been introduced by fixing a
+problem appearing when you used a slash in the name of a tag group.
diff --git a/ChangeLog b/ChangeLog
index fb37ec6..5a71a95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
* 0299 FIX: borcade_mlx_fan: Prettified output, handling "other" state now
* 0300 FIX: cisco_fru_power: Trying not to inventorize not plugged in FRUs...
+ WATO:
+ * 0057 FIX: Fix exception in WATO host editor on custom tag without topic...
+
Reporting & Availability:
* 0018 New option for displaying a legend for the colors used in the timeline...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9f8c1dc..b6bdaf8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5096,7 +5096,7 @@ def declare_host_tag_attributes():
if len(entry) >= 4:
depends_on_tags = entry[3]
- if topic is None:
+ if not topic:
topic = _('Host tags')
declare_host_attribute(