]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove duplicated code in attribute.py
authorHong Hui Xiao <xiaohhui@cn.ibm.com>
Thu, 17 Dec 2015 08:26:56 +0000 (03:26 -0500)
committerHong Hui Xiao <xiaohhui@cn.ibm.com>
Thu, 17 Dec 2015 08:26:56 +0000 (03:26 -0500)
commitdd5f5716c9a32634caa2a44d362cd77461ba873d
tree939e2e13942b236814c6fd5a6f16cd52b6ae1f3b
parentb8d281a303ca12440aebb55895ebb192d25cecf8
Remove duplicated code in attribute.py

The _validate_XXX_list functions in [1] are mostly duplicated, this
patch will use one function to validate list of items and remove
others.

[1] neutron/api/v2/attributes.py

Change-Id: I86905018914becb64451941f0ecb06be30f2c740
Closes-Bug: #1527113
neutron/api/v2/attributes.py
neutron/tests/unit/api/v2/test_attributes.py