From 84969afb3bfd467a2f48cf030a325c1a2fcd13ca Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 5 Jun 2012 14:33:43 +0100 Subject: fix the instance quota overlimit message This addresses two closely related bugs. Bug: 998199 Fix the "used" and "total" counts in the returned diagnostic. Bug: 902218 Itemize instance quota items exceeded, in the returned diagnostic. Change-Id: Iff7781a7fb53545d44c2b4ec0ca6d65114723c8d --- nova/exception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index fd9f4c1ea..4f7f17fb5 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -993,8 +993,8 @@ class QuotaError(NovaException): class TooManyInstances(QuotaError): - message = _("Quota exceeded: already used %(used)d of %(allowed)d" - " instances") + message = _("Quota exceeded for %(overs)s: Requested %(req)s," + " but already used %(used)d of %(allowed)d instances") class VolumeSizeTooLarge(QuotaError): -- cgit