diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-01-15 12:19:53 -0800 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-01-16 09:54:46 -0800 |
commit | daa5db3f4e990185522f38d1011cfe37141298fe (patch) | |
tree | b3ab8fc5218d3ea28c355a2ce16df889b31917e2 /nova/exception.py | |
parent | 34ffd41831ee6b6e629a5f5c2e52c2729f00029d (diff) | |
download | nova-daa5db3f4e990185522f38d1011cfe37141298fe.tar.gz nova-daa5db3f4e990185522f38d1011cfe37141298fe.tar.xz nova-daa5db3f4e990185522f38d1011cfe37141298fe.zip |
Add encryption method using an ssh public key.
This is a prerequisite for adding support to xenapi with
a guest agent to support the get-password command.
Related to blueprint get-password
Change-Id: I226ea5ee4fd6e326ccbb39cdf9098925d3f45312
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py index f96b1eaf3..c23213785 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -179,8 +179,12 @@ class DBDuplicateEntry(DBError): super(DBDuplicateEntry, self).__init__(inner_exception) +class EncryptionFailure(NovaException): + message = _("Failed to encrypt text: %(reason)s") + + class DecryptionFailure(NovaException): - message = _("Failed to decrypt text") + message = _("Failed to decrypt text: %(reason)s") class VirtualInterfaceCreateException(NovaException): |