Don't hardcode options we pass to oslo.context
As oslo.context adds/removes options, we shouldn't have to update a hardcoded list on our side. Change-Id: I159d5587d15fa9889066339a97a6b505096f080b Closes-Bug: 1603036
This commit is contained in:
parent
ac6e95b6ae
commit
1687df2f78
@ -32,30 +32,13 @@ class DesignateContext(context.RequestContext):
|
||||
original_tenant = None
|
||||
_edit_managed_records = False
|
||||
|
||||
def __init__(self, auth_token=None, user=None, tenant=None, domain=None,
|
||||
user_domain=None, project_domain=None, is_admin=False,
|
||||
read_only=False, show_deleted=False, request_id=None,
|
||||
resource_uuid=None, overwrite=True, roles=None,
|
||||
service_catalog=None, all_tenants=False, abandon=None,
|
||||
def __init__(self, service_catalog=None, all_tenants=False, abandon=None,
|
||||
tsigkey_id=None, user_identity=None, original_tenant=None,
|
||||
edit_managed_records=False):
|
||||
edit_managed_records=False, **kwargs):
|
||||
|
||||
# NOTE: user_identity may be passed in, but will be silently dropped as
|
||||
# it is a generated field based on several others.
|
||||
super(DesignateContext, self).__init__(
|
||||
auth_token=auth_token,
|
||||
user=user,
|
||||
tenant=tenant,
|
||||
domain=domain,
|
||||
user_domain=user_domain,
|
||||
project_domain=project_domain,
|
||||
is_admin=is_admin,
|
||||
read_only=read_only,
|
||||
show_deleted=show_deleted,
|
||||
request_id=request_id,
|
||||
resource_uuid=resource_uuid,
|
||||
overwrite=overwrite,
|
||||
roles=roles)
|
||||
super(DesignateContext, self).__init__(**kwargs)
|
||||
|
||||
self.service_catalog = service_catalog
|
||||
self.tsigkey_id = tsigkey_id
|
||||
|
Loading…
Reference in New Issue
Block a user