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.
Reviewed: https:/ /review. openstack. org/340193 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=842d95bb684 9058267b67965d1 a6379acfe8e38c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 842d95bb6849058 267b67965d1a637 9acfe8e38c
Author: Jamie Lennox <email address hidden>
Date: Mon Jul 11 09:28:26 2016 +1000
Use context.from_dict to determine available arguments
RequestCont ext.__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 6f504bab17163d7 f0ba21f5029
Change-Id: Iaf37e38ddc368a