Module: check_mk
Branch: master
Commit: 82ae288385f9c7efac242a03ade5ecf3d0191e4e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82ae288385f9c7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 6 18:31:01 2014 +0200
Fixed exception in hosts BI aggregation link icon
---
web/htdocs/valuespec.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 39e93ab..c635f38 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -3100,7 +3100,11 @@ class VisualFilterList(ListOfMultiple):
def filter_variable_settings(self, value, row):
vars = []
for fname in value.keys():
- vars += self._filters[fname].variable_settings(row)
+ try:
+ vars += self._filters[fname].variable_settings(row)
+ except KeyError:
+ # When the row misses at least one var for a filter ignore this filter
completely
+ pass
return vars
# Realizes a Multisite/visual filter in a valuespec. It can render the filter form, get