commit 816ccb35b436ef793d23749c7017e362ec815838
Author: Kevin Benton <email address hidden>
Date: Wed Mar 8 14:43:28 2017 -0800
Init policy in pecan after hook as well
policy.init() is called in the before hook, but this isn't
invoked on GET calls so if the first call a thread receives
is a GET call, we can end up with an uninitialized policy
enforcer and get a traceback.
This just calls policy.init() in the after hook as well.
Change-Id: I29ebc9a91b98a27e707d5b35ad1a24a26e8c8f44
Closes-Bug: #1671267
(cherry picked from commit 4c40016dfba21a851d1cac5ce199ddcca001562b)
Reviewed: https:/ /review. openstack. org/460913 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=816ccb35b43 6ef793d23749c70 17e362ec815838
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 816ccb35b436ef7 93d23749c7017e3 62ec815838
Author: Kevin Benton <email address hidden>
Date: Wed Mar 8 14:43:28 2017 -0800
Init policy in pecan after hook as well
policy.init() is called in the before hook, but this isn't
invoked on GET calls so if the first call a thread receives
is a GET call, we can end up with an uninitialized policy
enforcer and get a traceback.
This just calls policy.init() in the after hook as well.
Change-Id: I29ebc9a91b98a2 7e707d5b35ad1a2 4a26e8c8f44 51d1cac5ce199dd cca001562b)
Closes-Bug: #1671267
(cherry picked from commit 4c40016dfba21a8