Module: check_mk
Branch: master
Commit: 72f6d3392d5b44804214617ed8501e7ad81c7624
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=72f6d3392d5b44…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 10 11:58:09 2014 +0200
availability: return empty list instead of None, if no items found
---
web/plugins/views/availability.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 5c70cd3..af317a0 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -1182,7 +1182,7 @@ def render_availability_table(availability, from_time, until_time,
range_title,
if not availability:
if not no_html:
html.message(_("No matching hosts/services."))
- return # No objects
+ return [] # No objects
grouping = avoptions["grouping"]
fetch_data = []