summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorOllie Leahy <oliver.leahy@hp.com>2011-11-24 15:56:08 +0000
committerOllie Leahy <oliver.leahy@hp.com>2011-11-28 14:13:13 +0000
commite0ef89f091a77a25fa9bcfd466159e101cb42c56 (patch)
tree5f558090f177498896b0128dc04f75749642a393 /nova/exception.py
parent43bb342296936887a33deba4fb4666eadc747244 (diff)
downloadnova-e0ef89f091a77a25fa9bcfd466159e101cb42c56.tar.gz
nova-e0ef89f091a77a25fa9bcfd466159e101cb42c56.tar.xz
nova-e0ef89f091a77a25fa9bcfd466159e101cb42c56.zip
Fixes bug 888649
Change exception.VolumeIsBusy to derive from NovaException instead of Error, so that an 'unexpected keyword' exception is not thrown when the exception is raised with keyword parameters. Add unit test to confirm that the 'unexpected keyword' exception is not thrown when the exception is raised by nova.volume.driver.VolumeDriver Responded to reviewer observations, fix pep8 errors in tset_volume.py, added email address to Authors file. Change-Id: I15464cb0cf72a2c71f430e4c8c5c2b27cd4e2ef9
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 78a888faa..c6e08824b 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -396,7 +396,7 @@ class SnapshotNotFound(NotFound):
message = _("Snapshot %(snapshot_id)s could not be found.")
-class VolumeIsBusy(Error):
+class VolumeIsBusy(NovaException):
message = _("deleting volume %(volume_name)s that has snapshot")