diff options
author | Zuul <zuul@review.opendev.org> | 2022-06-03 07:15:41 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-06-03 07:15:41 +0000 |
commit | be7f48dd36ba9d4f6adffd23abe7363480abfff8 (patch) | |
tree | 795cd296f1ccab8d98a9c0372309124acafaa25b | |
parent | 1b7b7df188e37081cc0f0adf0144b565c5bf1daf (diff) | |
parent | 22d3c0c0dd021eb6914913111f224280043b03c3 (diff) | |
download | designate-be7f48dd36ba9d4f6adffd23abe7363480abfff8.tar.gz |
Merge "Fixed incorrect quota exception message" into stable/yoga
-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() |