From eb5a6bcc06a9e7faff4030d278f418264bb0562e Mon Sep 17 00:00:00 2001 From: Matthew Edmonds Date: Mon, 14 Mar 2016 14:55:07 -0400 Subject: [PATCH] get_admin_context overwriting context When the admin context is retrieved, the user context and its request ID is lost. All subsequent log entries would have different request IDs and any further context checking will be using an admin's context instead of the user's context. I'm not aware of any further checking today, but better to fix this now and avoid that being an issue in the future. Change-Id: I1371ddb70736a49f9124f85352d6d195aec97c80 Closes-Bug: #1511406 --- sahara/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sahara/context.py b/sahara/context.py index e05769273c..9a21a17dd2 100644 --- a/sahara/context.py +++ b/sahara/context.py @@ -134,7 +134,7 @@ class Context(context.RequestContext): def get_admin_context(): - return Context(is_admin=True) + return Context(is_admin=True, overwrite=False) _CTX_STORE = threading.local()