]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove DBDuplicateEntry columns check
authorWei Hu <hwhu@cn.ibm.com>
Thu, 13 Nov 2014 10:19:39 +0000 (18:19 +0800)
committerWeiHu <hwhu@cn.ibm.com>
Fri, 9 Jan 2015 03:41:29 +0000 (11:41 +0800)
commita7eead2f1fa71466c5734413165752dc9386ca89
treeb7f16a46d59fd30127743000e0d2db7e149711f8
parent6df7f5abf16f11abe784ab33e7885ec7bb8a5273
Remove DBDuplicateEntry columns check

DBDuplicateEntry exception does not provide columns for db2.
we have to remove this exception columns check in neutron/
db/agents_db.py. It is safe to remove columns check here, since
only the duplication of host and agent_type can raise this
exception.

Change-Id: I00d7b7c64de2912dda9fa57c08d90b1ef1c3aed7
Closes-bug: #1391766
neutron/db/agents_db.py
neutron/tests/unit/db/test_agent_db.py