Comment 17 for bug 1602081

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

Reviewed: https://review.openstack.org/340193
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=842d95bb6849058267b67965d1a6379acfe8e38c
Submitter: Jenkins
Branch: master

commit 842d95bb6849058267b67965d1a6379acfe8e38c
Author: Jamie Lennox <email address hidden>
Date: Mon Jul 11 09:28:26 2016 +1000

    Use context.from_dict to determine available arguments

    RequestContext.__init__ takes and ignores arbitrary keyword arguments.
    This leads to mistakes such as those changed in tests and will prevent
    cinder from passing those keyword arguments to the base oslo_context
    class.

    The ignored arguments are generally made up of things that oslo_context
    added to the to_dict that cinder doesn't handle. Instead of accepting
    and ignoring those arguments make from_dict smart enough to construct
    the correct arguments to the class.

    Related-Bug: #1602081
    Change-Id: Iaf37e38ddc368a6f504bab17163d7f0ba21f5029