Fix error message when updating quota values

The error message mixes smaller and greater which leads to error
messages like "Quota value 4000 for gigabytes are greater than
already used and reserved 8000.". The proposed patch fixes this
(and replaces 'are' by 'is' in the message).

Change-Id: I90b04ae12235d5fabc57d549aff53eaa7bd99565
This commit is contained in:
Arne Wiebalck 2019-02-28 13:15:54 +01:00
parent fdac239d7e
commit 9d999da322
1 changed files with 2 additions and 2 deletions

View File

@ -214,8 +214,8 @@ class QuotaSetsMixin(object):
{'key': key, 'quota_used': quota_used,
'value': value})
if quota_used > value:
msg = (_("Quota value %(value)s for %(key)s are "
"greater than already used and reserved "
msg = (_("Quota value %(value)s for %(key)s is "
"smaller than already used and reserved "
"%(quota_used)s.") %
{'value': value, 'key': key,
'quota_used': quota_used})