summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Encryption.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-01-07 11:57:23 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-01-07 11:57:23 -0500
commitdeef870d5c8ce3a874878a16abbfb4b126dca4dc (patch)
tree71120c9a578f2585e33938c6dd15862933032bf2 /src/lib/Bcfg2/Encryption.py
parent3fa9197a3e1ca39bd35915e9ad1281a0177d8ab3 (diff)
downloadbcfg2-deef870d5c8ce3a874878a16abbfb4b126dca4dc.tar.gz
bcfg2-deef870d5c8ce3a874878a16abbfb4b126dca4dc.tar.bz2
bcfg2-deef870d5c8ce3a874878a16abbfb4b126dca4dc.zip
Encryption: fixed base64 decode failure message
Diffstat (limited to 'src/lib/Bcfg2/Encryption.py')
-rwxr-xr-xsrc/lib/Bcfg2/Encryption.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Encryption.py b/src/lib/Bcfg2/Encryption.py
index a09d652d2..69d40ea37 100755
--- a/src/lib/Bcfg2/Encryption.py
+++ b/src/lib/Bcfg2/Encryption.py
@@ -123,7 +123,7 @@ def ssl_decrypt(data, passwd, algorithm=ALGORITHM):
# encrypted but is not. we don't want to include a plaintext
# secret in the error logs.
raise TypeError("Could not decode base64 data: %s" %
- (data, sys.exc_info()[1]))
+ sys.exc_info()[1])
salt = data[8:16]
# pylint: disable=E1101,E1121
hashes = [md5(passwd + salt).digest()]