]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make sure exceptions during policy checks are logged.
authorarmando-migliaccio <amigliaccio@nicira.com>
Mon, 17 Jun 2013 20:33:46 +0000 (13:33 -0700)
committerarmando-migliaccio <amigliaccio@nicira.com>
Wed, 19 Jun 2013 21:23:49 +0000 (14:23 -0700)
commit8eea1ae574671a157ae2d215f18635a3c8985a06
tree958aa41672d06ecd008fd2a14c7f850a0ba23d69
parent248375ed0b9c7a30110cba8e232680d7223c571e
Make sure exceptions during policy checks are logged.

If the invocation of f bombs out, the policy check fails (i.e. returns
False), however it does not log the root cause, which makes very
difficult to understand why this is happening.

Fixes bug #1191948

Change-Id: Ic40053f3965b71199baf9fe3902e8ffc9745076f
quantum/policy.py
quantum/tests/unit/test_policy.py