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
This commit is contained in:
committed by
Divya K Konoor
parent
26f8cd38ca
commit
134d2eadef
@@ -607,8 +607,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