summaryrefslogtreecommitdiffstats
path: root/nova/volume
diff options
context:
space:
mode:
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