diff options
Diffstat (limited to 'trove/extensions/mgmt/quota/service.py')
-rw-r--r-- | trove/extensions/mgmt/quota/service.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trove/extensions/mgmt/quota/service.py b/trove/extensions/mgmt/quota/service.py index 1786160c..b61f4fb2 100644 --- a/trove/extensions/mgmt/quota/service.py +++ b/trove/extensions/mgmt/quota/service.py @@ -55,6 +55,9 @@ class QuotaController(wsgi.Controller): for resource, limit in body['quotas'].items(): if limit is None: continue + elif limit < -1: + raise exception.QuotaLimitTooSmall(limit=limit, + resource=resource) if resource == "xmlns": continue if resource not in registered_resources: |