From 936ce1aa54a1034f6c09e2baa588c96416322265 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Tue, 26 Sep 2017 12:23:22 +0300 Subject: [PATCH] Output 'project' key in context's to_dict function This adds the 'project' key to the output dict, which contains the same value as the 'tenant' key. Change-Id: I9f7514daa162c5a9f0e7c8c24455bd1d29517cf5 --- oslo_context/context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oslo_context/context.py b/oslo_context/context.py index 2a9ae8b..06f981e 100644 --- a/oslo_context/context.py +++ b/oslo_context/context.py @@ -327,6 +327,7 @@ class RequestContext(object): return {'user': self.user_id, 'tenant': self.project_id, + 'project': self.project_id, 'domain': self.domain_id, 'user_domain': self.user_domain_id, 'project_domain': self.project_domain_id,