diff options
author | Erik Olof Gunnar Andersson <eandersson@blizzard.com> | 2022-05-28 20:44:50 -0700 |
---|---|---|
committer | Michael Johnson <johnsomor@gmail.com> | 2022-05-31 21:56:39 +0000 |
commit | 22d3c0c0dd021eb6914913111f224280043b03c3 (patch) | |
tree | 0f1bbe5d6657afd0be97044ed0708cc0d7f4cc91 | |
parent | 5b014685ac4d7e18d984cc8fe075a0ba905919f9 (diff) | |
download | designate-22d3c0c0dd021eb6914913111f224280043b03c3.tar.gz |
Fixed incorrect quota exception message
Change-Id: I38efa22bb8b0de6fd9a70339e8044fea70080004
(cherry picked from commit 291558c380232b726be0253fdee1f88902522beb)
-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 a98cb518..a51024c6 100644 --- a/designate/quota/impl_storage.py +++ b/designate/quota/impl_storage.py @@ -72,7 +72,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: create_quota() |