Module: check_mk
Branch: master
Commit: 7f756015b057d98cd2d0b6076fba49f47ecbc0b8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7f756015b057d9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 27 13:14:23 2016 +0200
Fix Werk #3394 for host annotations - worked only for services
---
web/htdocs/availability.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/web/htdocs/availability.py b/web/htdocs/availability.py
index 43115df..ecb1684 100644
--- a/web/htdocs/availability.py
+++ b/web/htdocs/availability.py
@@ -774,8 +774,7 @@ def reclassify_by_annotations(what, av_rawdata):
new_entries = {}
reclassified_rawdata[(site, host_name)] = new_entries
for service_description, service_history in service_entries.iteritems():
- anno_key = (site, host_name, service_description)
- cycles = [ ((site, host_name, service_description), "in_downtime")
]
+ cycles = [ ((site, host_name, service_description or None),
"in_downtime") ]
if what == "service":
cycles = [ ((site, host_name, None), "in_host_downtime") ] +
cycles