Module: check_mk
Branch: master
Commit: 003757f204eaba5fad1799c98d1c0fcfe9a7044a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=003757f204eaba…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Wed May 9 15:05:23 2018 +0200
Use hashlib instead of builtin hash function for ModeDiscovery
Change-Id: I727d3142884e3584422c2f247d77cc0b912eaebe
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index c43e520..294cb73 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3620,7 +3620,7 @@ class ModeDiscovery(WatoMode):
# may contain such chars, we need to use some encoded form of it. Simple
escaping/encoding
# like we use for values of variables is not enough here.
def _checkbox_name(self, check_type, item):
- return "_move_%s" % hash("%s_%s" % (check_type, item))
+ return "_move_%s" % sha256("%s_%s" % (check_type,
item)).hexdigest()
#.