Skip to content

Commit

Permalink
Propagate OverQuota exception
Browse files Browse the repository at this point in the history
Change-Id: I87479c2b88aff7f91295ae9c7fea32dd28eb5ce7
Closes-Bug: #1590930
  • Loading branch information
Antoine Eiche committed Feb 9, 2017
1 parent bdec44d commit 1051ad5
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -111,6 +111,11 @@ def _resource_create(self, obj):
self._raise_contrail_exception('BadRequest',
msg=str(e),
resource=res_type)
except vnc_exc.OverQuota as e:
res_type = obj.get_type()
self._raise_contrail_exception('OverQuota',
overs=[res_type],
msg=str(e))
return obj_uuid


Expand Down

0 comments on commit 1051ad5

Please sign in to comment.