The unknown keyword arguments that were passed to
RequestContext.__init__ were being dropped so that unknown parameters
coming back from from_dict didn't cause errors. This means however that
newer properties like RequestContext.from_environ might be passing
values to this context and nova's context drop them.
To work around this instead of dropping values at __init__ parse the
incoming values in from_dict so that only known arguments are passed
into the constructor. We can then assume that all values that context
doesn't handle are intended for the base class.
Reviewed: https:/ /review. openstack. org/341895 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2a610741b5a 1d02f984a6af132 131b8838d8c156
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2a610741b5a1d02 f984a6af132131b 8838d8c156
Author: Jamie Lennox <email address hidden>
Date: Thu Jul 14 11:21:27 2016 +1000
Pass kwargs through to base context
The unknown keyword arguments that were passed to ext.__init_ _ were being dropped so that unknown parameters from_environ might be passing
RequestCont
coming back from from_dict didn't cause errors. This means however that
newer properties like RequestContext.
values to this context and nova's context drop them.
To work around this instead of dropping values at __init__ parse the
incoming values in from_dict so that only known arguments are passed
into the constructor. We can then assume that all values that context
doesn't handle are intended for the base class.
Change-Id: I393c51e5319773 420f944bb85fd21 5270565fcbb
Related-Bug: #1602081