Browse Source

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
Juan Antonio Osorio Robles 1 year ago
parent
commit
936ce1aa54
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      oslo_context/context.py

+ 1
- 0
oslo_context/context.py View File

@@ -327,6 +327,7 @@ class RequestContext(object):
327 327
 
328 328
         return {'user': self.user_id,
329 329
                 'tenant': self.project_id,
330
+                'project': self.project_id,
330 331
                 'domain': self.domain_id,
331 332
                 'user_domain': self.user_domain_id,
332 333
                 'project_domain': self.project_domain_id,

Loading…
Cancel
Save