]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add the missing arg of RetryRequest exception in _lock_subnetpool
authorYalei Wang <yalei.wang@intel.com>
Wed, 11 Nov 2015 15:50:20 +0000 (23:50 +0800)
committerYalei Wang <yalei.wang@intel.com>
Mon, 16 Nov 2015 23:47:40 +0000 (07:47 +0800)
commit2cef12aeb25f6f024c0507c26b166d41d85bdd64
treef000a6f4ae48c89dea85ede45a9a48bca62cd6a0
parent00f5fedab034830bfa743966d5625fa1899baee0
Add the missing arg of RetryRequest exception in _lock_subnetpool

RetryRequest exception defined in oslo.db need be called with a arg
which describes the inner exception. _lock_subnetpool method missed this
arg, and this patch adds it.

Change-Id: I44869c97ecd7d59d40d8793c71515067a237150b
Closes-Bug: #1506818
neutron/common/exceptions.py
neutron/ipam/subnet_alloc.py
neutron/tests/unit/ipam/test_subnet_alloc.py