summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorLance Bragstad <lbragstad@gmail.com>2018-06-28 20:31:27 +0000
committerLance Bragstad <lbragstad@gmail.com>2018-07-09 16:46:57 +0000
commit775641a5fc549c20be37cf862deca394bf7f2d21 (patch)
tree78c0c0ae195cb64b71047d63ee369dc8ea0416b6 /requirements.txt
parent13a4e789bcf5d1e8bb67f92c866355f180260df9 (diff)
downloadoslo-policy-775641a5fc549c20be37cf862deca394bf7f2d21.tar.gz
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
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index 0de7135..86517fd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,6 +4,7 @@
requests>=2.14.2 # Apache-2.0
oslo.config>=5.2.0 # Apache-2.0
+oslo.context>=2.21.0 # Apache-2.0
oslo.i18n>=3.15.3 # Apache-2.0
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
PyYAML>=3.12 # MIT