Fixed incorrect quota exception message

Change-Id: I38efa22bb8b0de6fd9a70339e8044fea70080004
This commit is contained in:
Erik Olof Gunnar Andersson 2022-05-28 20:44:50 -07:00
parent ca74e78687
commit 291558c380
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class Quota(DriverPlugin, metaclass=abc.ABCMeta):
if resource not in quotas:
raise exceptions.QuotaResourceUnknown("%s is not a valid quota "
"resource", resource)
"resource" % resource)
return quotas[resource]

View File

@ -61,7 +61,7 @@ class StorageQuota(base.Quota):
if resource not in list(self.get_default_quotas(context).keys()):
raise exceptions.QuotaResourceUnknown("%s is not a valid quota "
"resource", resource)
"resource" % resource)
try:
self._create_quota(context, tenant_id, resource, hard_limit)