Clarify TooManyInstances exception message.

Fixes LP 1031737.

Previously the message indicated the number of instances requested
and an incorrect indication of the headroom, in the case where ram
or cores was the resource gone over-quota (as opposed to the number
of raw instances).

Change-Id: I9f7f3203f0e644ba533940a87e496bfd09da0460
This commit is contained in:
Eoghan Glynn
2012-07-31 16:18:16 +00:00
parent 9ddc5b9f3e
commit 9d8cfff7dc

View File

@@ -1007,7 +1007,7 @@ class QuotaError(NovaException):
class TooManyInstances(QuotaError):
message = _("Quota exceeded for %(overs)s: Requested %(req)s,"
" but already used %(used)d of %(allowed)d instances")
" but already used %(used)d of %(allowed)d %(resource)s")
class VolumeSizeTooLarge(QuotaError):