]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Pass object to policy when finding fields to strip
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 2 Jun 2014 10:14:02 +0000 (03:14 -0700)
committerJakub Libosvar <libosvar@redhat.com>
Wed, 4 Jun 2014 08:46:59 +0000 (10:46 +0200)
commit2bd97d205b98292be709b0257bda5fc489eb643a
tree66aa98c1b880c66adbcc919cc42ee3aef9263bfa
parentd720cb5cf640e66dde9c5fa3993288a57a6714ee
Pass object to policy when finding fields to strip

During the evaluation of fields to strip in responses to list
operations, pass also the first object in the list to the
policy engine.
This will avoid errors in policy evaluation if during
an upgrade from icehouse policy.json was not updated to remove
attribute-level policies dependent on resource values.

Closes-Bug: #1323715

Change-Id: Iaa6ed3bbf4a07ce0b614a4197cabdfa1cb36d427
neutron/api/v2/base.py