From 5c3910e369f8f675454242d16a03ec07a754b663 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 14 Nov 2024 12:02:14 +0000 Subject: [PATCH] Stop setting deprecated fields in redacted_copy The user, domain, user_domain and project_domain fields are deprecated aliases for user_id, domain_id, user_domain_id and project_domain_id, respectively. They point to the same property internally, so e.g. 'self.user_id' will resolve to the same value as 'self.user'. There is therefore no need to retrieve and set the deprecated variants. Doing so simply results in a lot of warnings. Change-Id: Id5203326c51510ee5dee31773ed1c0d012239e74 Signed-off-by: Stephen Finucane --- oslo_context/context.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/oslo_context/context.py b/oslo_context/context.py index 1f5add6..d6e1e05 100644 --- a/oslo_context/context.py +++ b/oslo_context/context.py @@ -417,10 +417,6 @@ class RequestContext(object): service_roles=self.service_roles, global_request_id=self.global_request_id, system_scope=self.system_scope, - user=self.user, - domain=self.domain, - user_domain=self.user_domain, - project_domain=self.project_domain, is_admin=self.is_admin, **kwargs )