diff options
author | Sushil Kumar <sushil.kumar2@globallogic.com> | 2013-12-12 03:55:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-12-14 15:16:20 +0000 |
commit | 953734d72752aaabe2f0c5f0526cf25a64b3a8b8 (patch) | |
tree | dbf42b1928fa78241e30956fa48d7deec2cb985e /novaclient/crypto.py | |
parent | 3ecaeb416ed77de4033bf6839208788b9d5f066e (diff) | |
download | python-novaclient-953734d72752aaabe2f0c5f0526cf25a64b3a8b8.tar.gz |
Enables H403 pep8 rules
Updates tox.ini to reduce ignored rules.
Updates code for H403 violation.
Change-Id: Iee7b34a27c62ce8cb0f26166b3c16e3386e2fecd
Diffstat (limited to 'novaclient/crypto.py')
-rw-r--r-- | novaclient/crypto.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/novaclient/crypto.py b/novaclient/crypto.py index a264823a..d817be5b 100644 --- a/novaclient/crypto.py +++ b/novaclient/crypto.py @@ -24,7 +24,8 @@ class DecryptionFailure(Exception): def decrypt_password(private_key, password): """Base64 decodes password and unecrypts it with private key. - Requires openssl binary available in the path""" + Requires openssl binary available in the path. + """ unencoded = base64.b64decode(password) cmd = ['openssl', 'rsautl', '-decrypt', '-inkey', private_key] proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, |