Comment 8 for bug 1602081

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/341895
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2a610741b5a1d02f984a6af132131b8838d8c156
Submitter: Jenkins
Branch: master

commit 2a610741b5a1d02f984a6af132131b8838d8c156
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
    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.

    Change-Id: I393c51e5319773420f944bb85fd215270565fcbb
    Related-Bug: #1602081