neutron/neutron/pecan_wsgi
Kevin Benton 816ccb35b4 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 4c40016dfb)
2017-04-28 10:01:52 +00:00
..
controllers Pecan: Fix tags handling for pecan 2017-02-13 21:39:26 +00:00
hooks Init policy in pecan after hook as well 2017-04-28 10:01:52 +00:00
__init__.py Rename 'newapi' to 'pecan_wsgi' 2015-09-02 15:53:34 +00:00
app.py Stop using deprecated CORS.set_latent() 2016-11-16 15:27:53 -05:00
constants.py Pecan: implement DHCP notifications in NotifierHook 2016-02-15 10:50:28 +00:00
startup.py Pecan: Fix tags handling for pecan 2017-02-13 21:39:26 +00:00