diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-03-23 00:31:50 -0400 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-03-23 00:31:50 -0400 |
| commit | 3796b5a8fc2baa9a35ebbc721735f22e952e6aa3 (patch) | |
| tree | 5b4e899fc15477f9ee9a01519a8f4fba976ddf4a | |
| parent | 83e2424e1c2721dd0ba42ca279de80b6c881ec21 (diff) | |
| download | nova-3796b5a8fc2baa9a35ebbc721735f22e952e6aa3.tar.gz nova-3796b5a8fc2baa9a35ebbc721735f22e952e6aa3.tar.xz nova-3796b5a8fc2baa9a35ebbc721735f22e952e6aa3.zip | |
Fix some crypto strangeness (\n in file_name field of certificates, wrong IMPL method for certificate_update).
| -rw-r--r-- | nova/crypto.py | 3 | ||||
| -rw-r--r-- | nova/db/api.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/nova/crypto.py b/nova/crypto.py index 2a8d4abca..b112e5b92 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -26,6 +26,7 @@ import gettext import hashlib import os import shutil +import string import struct import tempfile import time @@ -267,7 +268,7 @@ def _sign_csr(csr_text, ca_folder): './openssl.cnf', '-infiles', inbound) out, _err = utils.execute('openssl', 'x509', '-in', outbound, '-serial', '-noout') - serial = out.rpartition("=")[2] + serial = string.strip(out.rpartition("=")[2]) os.chdir(start) with open(outbound, "r") as crtfile: return (serial, crtfile.read()) diff --git a/nova/db/api.py b/nova/db/api.py index add5bd83e..afc1bff2f 100644 --- a/nova/db/api.py +++ b/nova/db/api.py @@ -214,7 +214,7 @@ def certificate_update(context, certificate_id, values): Raises NotFound if service does not exist. """ - return IMPL.service_update(context, certificate_id, values) + return IMPL.certificate_update(context, certificate_id, values) ################### |
