The from_environ method loads a context object with all the appropriate
values that are retrieved from auth_token middleware and other oslo
middlewares. This will let oslo add new things to policy enforcement in
future without having to manually change all services.
To do this we need to pass keyword arguments for the context through to
the base class.
Reviewed: https:/ /review. openstack. org/340206 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=11257a31c1a 5d4cf309515f8c9 523990386f5ab5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 11257a31c1a5d4c f309515f8c95239 90386f5ab5
Author: Jamie Lennox <email address hidden>
Date: Mon Jul 11 12:36:56 2016 +1000
Use context from_environ to load contexts
The from_environ method loads a context object with all the appropriate
values that are retrieved from auth_token middleware and other oslo
middlewares. This will let oslo add new things to policy enforcement in
future without having to manually change all services.
To do this we need to pass keyword arguments for the context through to
the base class.
Related-Bug: #1602081 49b757f1e35fc89 a451ae1720c
Change-Id: I0533c8aee38934