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:57:11 +0000 |
commit | 643f4cdeb08960fa8d61958f04d0e426aef4fb6c (patch) | |
tree | 0407ffa8c126c680b46a5d12a86503b48f4f3db6 | |
parent | 2e55c3e24bfaf1b03241aa1a4a538d03c29d69ad (diff) | |
download | designate-643f4cdeb08960fa8d61958f04d0e426aef4fb6c.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 1ac8c6e6..23eb7084 100644 --- a/designate/quota/base.py +++ b/designate/quota/base.py @@ -66,7 +66,7 @@ class Quota(DriverPlugin): 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 54a9fb2e..fb54de89 100644 --- a/designate/quota/impl_storage.py +++ b/designate/quota/impl_storage.py @@ -74,7 +74,7 @@ class StorageQuota(base.Quota): if resource not in list(six.iterkeys( self.get_default_quotas(context))): raise exceptions.QuotaResourceUnknown("%s is not a valid quota " - "resource", resource) + "resource" % resource) try: create_quota() |