Check_MK handles agent data as unicode'
Message-ID: <55a4bb25.cTNlCAsbxtiHcbbj%ab(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: e795386b6e4c3c2c5a91304170826058a744f052
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e795386b6e4c3c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jul 14 09:32:35 2015 +0200
drbd: fixed exception related to 'Check_MK handles agent data as unicode'
---
checks/drbd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/drbd b/checks/drbd
index 2ec825f..2eccac4 100644
--- a/checks/drbd
+++ b/checks/drbd
@@ -281,7 +281,7 @@ def check_drbd_general(item, params, info):
# Roles
output += ', Roles: %s/%s' % tuple(parsed['ro'])
- current_roles = "_".join(map(str.lower, parsed["ro"]))
+ current_roles = "_".join(map(lambda a: str(a).lower(),
parsed["ro"]))
found_role_match = False
if "roles" in params: