diff options
author | Claudiu Belu <cbelu@cloudbasesolutions.com> | 2015-03-05 21:39:08 +0200 |
---|---|---|
committer | Claudiu Belu <cbelu@cloudbasesolutions.com> | 2015-03-24 17:06:18 +0200 |
commit | 6fd652c64b74e4a4be67558d226ce1d596470487 (patch) | |
tree | 76ae07277ae7b1bb24ad138a73d3036a5ed22920 /nova/crypto.py | |
parent | ef4c6ee9099c3c11fd2e058a03e725cfd7db476a (diff) | |
download | nova-6fd652c64b74e4a4be67558d226ce1d596470487.tar.gz |
Adds cleanup on v2.2 keypair api and tests
Removes unused arguments in test_keypairs.
Sets the keypair 'type' field to enum in the v2.2 validation
schema.
Removes check if the keypair 'type' is valid, as it will be done
by the validation schema.
Adds functional tests for ssh and x509 keypairs.
Closes-Bug: 1434033
Change-Id: I39f0a363458a17a4011a0661a45dc449f122ba1a
Diffstat (limited to 'nova/crypto.py')
-rw-r--r-- | nova/crypto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/crypto.py b/nova/crypto.py index d358681cab..7194392e65 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -150,7 +150,7 @@ def generate_x509_fingerprint(pem_key): '-fingerprint', '-noout', process_input=pem_key) fingerprint = string.strip(out.rpartition('=')[2]) - return fingerprint + return fingerprint.lower() except processutils.ProcessExecutionError as ex: raise exception.InvalidKeypair( reason=_('failed to generate X509 fingerprint. ' |