diff options
author | Dan Prince <dprince@redhat.com> | 2012-12-18 09:55:46 -0500 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2012-12-18 14:27:16 -0500 |
commit | 65d9f80b5bfe9e94323f31f2d109670798774466 (patch) | |
tree | 7b465b3ff368231e2682f3aff8d1309ee283b172 /nova/crypto.py | |
parent | 2e80b297865e9c7b4251f97a95adaa6f4d0d4643 (diff) | |
download | nova-65d9f80b5bfe9e94323f31f2d109670798774466.tar.gz |
Update exceptions to pass correct kwargs.
Updates a variety of Nova exceptions so that they pass the correct
kwargs for proper exception message formatting. Previously
these exceptions would work but have incorrect error messages
because of how NovaException handled exception formatting errors.
Change-Id: I9601d3884a72d53a8ad742cf6610399968747cea
Diffstat (limited to 'nova/crypto.py')
-rw-r--r-- | nova/crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/crypto.py b/nova/crypto.py index 73af2f25a4..2ba2c3582a 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -99,7 +99,7 @@ def fetch_ca(project_id=None): project_id = None ca_file_path = ca_path(project_id) if not os.path.exists(ca_file_path): - raise exception.CryptoCAFileNotFound(project_id=project_id) + raise exception.CryptoCAFileNotFound(project=project_id) with open(ca_file_path, 'r') as cafile: return cafile.read() @@ -161,7 +161,7 @@ def fetch_crl(project_id): project_id = None crl_file_path = crl_path(project_id) if not os.path.exists(crl_file_path): - raise exception.CryptoCRLFileNotFound(project_id) + raise exception.CryptoCRLFileNotFound(project=project_id) with open(crl_file_path, 'r') as crlfile: return crlfile.read() |