Module: check_mk
Branch: master
Commit: cb4cb8c009402e9fa760857f5de11ff09309ce3d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb4cb8c009402e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 31 12:18:37 2018 +0100
Fixed bug in legacy logarithmic perfometer compatibility wrapper
Change-Id: Ie5f740bf5737bcd179bd562a980d8c45ddca415f
---
web/htdocs/metrics.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index de830e9..a9287d3 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -950,7 +950,7 @@ class MetricometerRendererLogarithmic(MetricometerRenderer):
def __init__(self, perfometer, translated_metrics):
super(MetricometerRendererLogarithmic, self).__init__(perfometer,
translated_metrics)
- if "metric" not in self._perfometer:
+ if self._perfometer is not None and "metric" not in self._perfometer:
raise MKGeneralException(_("Missing key \"metric\" in
logarithmic perfometer: %r") % self._perfometer)