Skip to content

Commit

Permalink
Merge "Propagate OverQuota exception"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 13, 2017
2 parents 5061940 + 1051ad5 commit 1fc6aef
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,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 1fc6aef

Please sign in to comment.