commit 4c40016dfba21a851d1cac5ce199ddcca001562b
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.
Reviewed: https:/ /review. openstack. org/443342 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=4c40016dfba 21a851d1cac5ce1 99ddcca001562b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4c40016dfba21a8 51d1cac5ce199dd cca001562b
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
Closes-Bug: #1671267