Module: check_mk
Branch: master
Commit: 3a7bec36ff9bc8eb471f6d9f121ec3fa7fa612ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3a7bec36ff9bc8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 21 12:14:18 2016 +0200
Small improvement of config generating (sorting tags of host for easier caching)
---
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 f50ac70..c82e356 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1291,7 +1291,7 @@ hosttags = {}
def collect_hosttags():
for taggedhost in all_hosts + clusters.keys():
parts = taggedhost.split("|")
- hosttags[parts[0]] = parts[1:]
+ hosttags[parts[0]] = sorted(parts[1:])
g_hosttag_taglist_cache = {}