Comment 6 for bug 1671267

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ocata)

Reviewed: https://review.openstack.org/460913
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=816ccb35b436ef793d23749c7017e362ec815838
Submitter: Jenkins
Branch: stable/ocata

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)