]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid removal of attributes used by policy engine
authorSalvatore Orlando <salv.orlando@gmail.com>
Tue, 17 Jul 2012 16:32:16 +0000 (09:32 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Wed, 18 Jul 2012 01:37:14 +0000 (18:37 -0700)
commiteeb0b8ed9c0c289a05167c0a78b862d0258393e5
tree49aff40a76b88876edccb5b70e10672668186f74
parent2cb30561416a499673c8a32cf7700963ca772da7
Avoid removal of attributes used by policy engine

Fixes bug1025150

Ensures that each attribute which is used by the policy engine is not
removed by the plugin when the 'fields' query parameter is specified.
This could be better achieved by not having the plugin perform this
selection, but as it is part of the plugin interface, it's probably better
not to introduce changes which alter it.

Change-Id: I68ab0998b7113f06da5df74ccd44e390640de475
quantum/api/v2/base.py
quantum/api/v2/router.py
quantum/api/v2/views.py
quantum/policy.py
quantum/tests/unit/test_api_v2.py
quantum/tests/unit/test_db_plugin.py