Module: check_mk
Branch: master
Commit: 63b60a1c1e338ea8cab1cc419a6b081b613738ff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=63b60a1c1e338e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 28 08:53:48 2016 +0200
Fixed issue in recent commit
---
web/htdocs/valuespec.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 919fc25..e0b8fd7 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -4158,6 +4158,7 @@ class SSHKeyPair(ValueSpec):
@classmethod
def _get_key_fingerprint(cls, value):
+ private_key, public_key = value
key = base64.b64decode(public_key.strip().split()[1].encode('ascii'))
fp_plain = hashlib.md5(key).hexdigest()
return ':'.join(a+b for a,b in zip(fp_plain[::2], fp_plain[1::2]))