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
This commit is contained in:
Pádraig Brady
2012-06-05 14:33:43 +01:00
parent fa8ee4f0ab
commit ef72d42e4e

View File

@@ -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):