Module: check_mk
Branch: master
Commit: 35a2b383c97e9aa730b46cdd0792a5516128235c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=35a2b383c97e9a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 2 15:05:53 2016 +0100
Fix crash in service details of services without perf data
---
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 844dd1a..8bae21d 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -310,7 +310,7 @@ def parse_perf_data(perf_data_string, check_command=None):
check_command = check_command.split("!")[0]
if not perf_data_string:
- return None, check_command
+ return [], check_command
# Split the perf data string into parts. Preserve quoted strings!
try: