diff options
author | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2022-05-28 20:44:50 -0700 |
---|---|---|
committer | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2022-05-28 20:44:50 -0700 |
commit | 291558c380232b726be0253fdee1f88902522beb (patch) | |
tree | d74dc6df5a534db41411dc51e0c56a9bf573d441 | |
parent | ca74e78687dc69479a7f051b0040c9767ae5ca0c (diff) | |
download | designate-291558c380232b726be0253fdee1f88902522beb.tar.gz |
Fixed incorrect quota exception message
Change-Id: I38efa22bb8b0de6fd9a70339e8044fea70080004
-rw-r--r-- | designate/quota/base.py | 2 | ||||
-rw-r--r-- | designate/quota/impl_storage.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/designate/quota/base.py b/designate/quota/base.py index 49a0be5b..6082123c 100644 --- a/designate/quota/base.py +++ b/designate/quota/base.py @@ -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] diff --git a/designate/quota/impl_storage.py b/designate/quota/impl_storage.py index 1b7ad0b7..ab03b70b 100644 --- a/designate/quota/impl_storage.py +++ b/designate/quota/impl_storage.py @@ -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) |