Module: check_mk
Branch: master
Commit: 7b3443da85ea69012380c4afb668316788bae015
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b3443da85ea69…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 30 11:02:19 2015 +0100
Fixed broken software package search
---
web/plugins/views/inventory.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index 7932fa9..06f6260 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -633,7 +633,7 @@ def inv_multisite_table(dsname, columns, add_headers, only_sites,
limit, filters
header = filt.filter(dsname)
if not header.startswith("Sites:"):
filter_code += header
- host_columns = [ "host_name" ] + filter(lambda c:
c.startswith("host_"), columns)
+ host_columns = list(set([ "host_name" ] + filter(lambda c:
c.startswith("host_"), columns)))
html.live.set_only_sites(only_sites)
html.live.set_prepend_site(True)
@@ -665,7 +665,7 @@ def inv_multisite_table(dsname, columns, add_headers, only_sites,
limit, filters
site = row[0]
hostname = row[1]
hostrow = dict(zip(headers, row))
- if dsname == "invswpac":
+ if dsname == "invswpacs":
subrows = create_swpac_rows(hostname)
else:
subrows = create_hist_rows(hostname, columns)