summaryrefslogtreecommitdiffstats
path: root/nova/volume
diff options
context:
space:
mode:
authorAlex Meade <alex.meade@rackspace.com>2012-04-30 12:59:21 -0400
committerAlex Meade <alex.meade@rackspace.com>2012-05-02 13:33:24 -0400
commit718a3f057cee0b1163c40fbcbedda29bd2ef9dfe (patch)
tree6d4531db55a152c958ca3e30ff01394de512b190 /nova/volume
parent994bba6ae7156a565bd160fc8f0f8e8578c28d1b (diff)
Provide better quota error messages.
Refactor the handling of QuotaErrors. Fixes bug: 990015 Fixes bug: 991994 Change-Id: I722545fad3c0bdff896a8f56f6c53ba47e433b0c
Diffstat (limited to 'nova/volume')
-rw-r--r--nova/volume/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/volume/api.py b/nova/volume/api.py
index c40270ac7..f62d41ea6 100644
--- a/nova/volume/api.py
+++ b/nova/volume/api.py
@@ -84,7 +84,7 @@ class API(base.Base):
pid = context.project_id
LOG.warn(_("Quota exceeded for %(pid)s, tried to create"
" %(size)sG volume") % locals())
- raise exception.QuotaError(code="VolumeSizeTooLarge")
+ raise exception.VolumeSizeTooLarge()
if availability_zone is None:
availability_zone = FLAGS.storage_availability_zone