Module: check_mk
Branch: master
Commit: e89b7f2f95f46677f672fe9eac46e02aec519a6a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e89b7f2f95f466…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 7 10:20:22 2016 +0100
Fixed bug which made the GENERIC agent always same as the VANILLA agent in the agent
bakery
---
modules/check_mk.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index bc96596..438c505 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -688,7 +688,10 @@ def host_extra_conf(hostname, ruleset):
entries = []
for item, hostname_list in ruleset:
- if hostname in hostname_list:
+ # Hack for the agent bakery: The hostname may be "True" which is used
+ # for the generic agent. When the hostname is True it should match
+ # without conditions.
+ if hostname == True or hostname in hostname_list:
entries.append(item)
return entries