Stop fetch_ca from throwing IOError exceptions
Fixes bug #883300 Fixes problem where fetch_ca could throw an IOError exception rather than a Nova specific exception. Adds FileError exception. Fixes other functions in crypto.py that had very similar problems. Change-Id: Ic2e43c35ad58c67d33156c53d2a41910dfdf8678
This commit is contained in:
@@ -1100,6 +1100,14 @@ class UnexpectedTaskStateError(NovaException):
|
||||
"the actual state is %(actual)s")
|
||||
|
||||
|
||||
class CryptoCAFileNotFound(FileNotFound):
|
||||
message = _("The CA file for %(project)s could not be found")
|
||||
|
||||
|
||||
class CryptoCRLFileNotFound(FileNotFound):
|
||||
message = _("The CRL file for %(project)s could not be found")
|
||||
|
||||
|
||||
def get_context_from_function_and_args(function, args, kwargs):
|
||||
"""Find an arg of type RequestContext and return it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user