Module: check_mk
Branch: master
Commit: 8f0a5d91bd0e74a65290f27e9f7f3762d99e950a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8f0a5d91bd0e74…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 17 13:28:59 2016 +0100
Fixed possible wrong tag matching caching due to wrong cache id computation
---
modules/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 2274b0b..280ea23 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1269,7 +1269,7 @@ g_global_caches.append('g_hosttag_taglist_cache')
# New in 1.1.13: a trailing + means a prefix match
def hosttags_match_taglist(hosttags, required_tags):
try:
- cache_id = tuple(hosttags) + tuple(required_tags)
+ cache_id = tuple(hosttags), tuple(required_tags)
return g_hosttag_taglist_cache[cache_id]
except KeyError:
pass