The from_environ method is designed to pick up all the parameters set
from auth_token middleware and other oslo middlewares and create a
context with them.
By doing this there will be information available to libraries like
oslo.policy and oslo.logging without nova having to track each change to
the base library.
There is ongoing work here to move more values to the base class that
will be cleaned up in future.
Reviewed: https:/ /review. openstack. org/341896 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=13b5ab26861 e4d6f6b5d990520 04d5d1da8ccab5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 13b5ab26861e4d6 f6b5d99052004d5 d1da8ccab5
Author: Jamie Lennox <email address hidden>
Date: Thu Jul 14 11:25:09 2016 +1000
Use from_environ when creating a context
The from_environ method is designed to pick up all the parameters set
from auth_token middleware and other oslo middlewares and create a
context with them.
By doing this there will be information available to libraries like
oslo.policy and oslo.logging without nova having to track each change to
the base library.
There is ongoing work here to move more values to the base class that
will be cleaned up in future.
Change-Id: I6b61028fcecb86 cc6c25fb6997777 4e266a8ea5b
Related-Bug: #1602081