From 718a3f057cee0b1163c40fbcbedda29bd2ef9dfe Mon Sep 17 00:00:00 2001 From: Alex Meade Date: Mon, 30 Apr 2012 12:59:21 -0400 Subject: Provide better quota error messages. Refactor the handling of QuotaErrors. Fixes bug: 990015 Fixes bug: 991994 Change-Id: I722545fad3c0bdff896a8f56f6c53ba47e433b0c --- nova/volume/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/volume') 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 -- cgit