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:51 +0000 |
commit | fc0c6b37c5d95c764ad636ca6848bfa21adf8050 (patch) | |
tree | d5be71e8a37f6746fc56ddc52c73ed2a7cb1f4d8 | |
parent | c78db47c746cab2fc505bd60f11f05a08eb94120 (diff) | |
download | designate-fc0c6b37c5d95c764ad636ca6848bfa21adf8050.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 dc38c3a4..802c7a71 100644 --- a/designate/quota/base.py +++ b/designate/quota/base.py @@ -64,7 +64,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 4631b569..4262ade3 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() |