Comment 2 for bug 1779172

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.policy (master)

Reviewed: https://review.openstack.org/578995
Committed: https://git.openstack.org/cgit/openstack/oslo.policy/commit/?id=775641a5fc549c20be37cf862deca394bf7f2d21
Submitter: Zuul
Branch: master

commit 775641a5fc549c20be37cf862deca394bf7f2d21
Author: Lance Bragstad <email address hidden>
Date: Thu Jun 28 20:31:27 2018 +0000

    Teach Enforcer.enforce to deal with context objects

    The ``creds`` dictionary passed into oslo.policy's enforce() method
    assumes a lot of the same values already specified by oslo.context
    RequestContext objects.

    This commit teaches enforce() to handle being passed an instance of
    a RequestContext object, and populate credential values accordingly.

    Change-Id: Ia74bf6c40b1e05a1c958f4325e00f68be28d91b9
    Closes-Bug: 1779172