Added gigabyte unit to values in exception message
Currently when we get a VolumeSizeExceedsLimit exception,
we display the values in exception without units. Added
unit 'G' gigabytes to exception message.
Change-Id: Id4e09fc036b5464bca169037c13c7f591dbdb56a
Closes-Bug: 1673023
(cherry picked from commit 134d2eadef)
This commit is contained in:
committed by
Abhishek Sharma M
parent
b809382fd8
commit
0097fa34df
@@ -603,8 +603,8 @@ class VolumeSizeExceedsAvailableQuota(QuotaError):
|
||||
|
||||
|
||||
class VolumeSizeExceedsLimit(QuotaError):
|
||||
message = _("Requested volume size %(size)d is larger than "
|
||||
"maximum allowed limit %(limit)d.")
|
||||
message = _("Requested volume size %(size)dG is larger than "
|
||||
"maximum allowed limit %(limit)dG.")
|
||||
|
||||
|
||||
class VolumeBackupSizeExceedsAvailableQuota(QuotaError):
|
||||
|
||||
Reference in New Issue
Block a user