Module: check_mk
Branch: master
Commit: 71c4e17f371b64983316510285f480fe995bdcde
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=71c4e17f371b64…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 18 16:49:02 2012 +0200
More tolerance to host tags with dependencies
---
web/htdocs/wato.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 6034a4e..732dded 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8349,7 +8349,8 @@ def mode_hosttags(phase):
"<th>" + _("Demonstration") +
"</th>"
"</tr>")
odd = "even"
- for nr, (tag_id, title, choices) in enumerate(hosttags):
+ for nr, entry in enumerate(hosttags):
+ tag_id, title, choices = entry[:3] # forth: dependency information
odd = odd == "odd" and "even" or "odd"
html.write('<tr class="data %s0">' % odd)
edit_url = make_link([("mode", "edit_hosttag"),
("edit", tag_id)])
@@ -8530,7 +8531,8 @@ def mode_edit_hosttag(phase):
title = ""
choices = []
if not new:
- for id, tit, ch in hosttags:
+ for entry in hosttags:
+ id, tit, ch = entry[:3]
if id == tag_id:
title = tit
choices = ch