Fixed incorrect quota exception message
Change-Id: I38efa22bb8b0de6fd9a70339e8044fea70080004
This commit is contained in:
parent
ca74e78687
commit
291558c380
@ -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]
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user