diff options
author | Zuul <zuul@review.opendev.org> | 2022-06-03 18:07:09 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-06-03 18:07:09 +0000 |
commit | f08ff2efaaebc1be6194d9d7b774bee5a3f926af (patch) | |
tree | f93127ece184439309785d93ad398ba232297785 | |
parent | a4530a8ba3ab2fb731923dfc7f51510ca1badd62 (diff) | |
parent | 643f4cdeb08960fa8d61958f04d0e426aef4fb6c (diff) | |
download | designate-f08ff2efaaebc1be6194d9d7b774bee5a3f926af.tar.gz |
Merge "Fixed incorrect quota exception message" into stable/wallaby
-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 21558d6e..a08ff243 100644 --- a/designate/quota/base.py +++ b/designate/quota/base.py @@ -75,7 +75,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() |