Files
tacker/tacker
Hiromu Asahina 2625c00375 Remove deprecated attributes from context
The oslo.context emits a warning for attributes that are not listed in
[1] and considered to be deprecated. According to the warning message,
the policy file should be modified to use $(project_id)s instead of
$(tenant_id)s. Also, context.user is deprecated. We should remove lines
using context.user and use context.user_id only.

The following deprecation warnings are gone with the patch:

- context.py💯 DeprecationWarning: Policy enforcement is depending on
  the value of tenant_id. This key is deprecated. Please update your
  policy file to use the standard policy values.

- test_auth.py:75: DeprecationWarning: Property ‘user’ has moved to
  ‘user_id’ in version ‘2.6’ and will be removed in version ‘3.0’

[1] https://github.com/openstack/oslo.context/blob/master/oslo_context/context.py#L313-L327

Change-Id: Ib06cd0d54772d17838789943b6a09c581b899435
Closes-Bug: #1976219
(cherry picked from commit 39925d1141)
2022-07-04 15:40:12 +09:00
..
2021-09-16 01:19:51 +00:00
2020-10-19 12:10:05 +00:00
2020-10-24 08:58:53 +00:00
2022-02-21 11:58:26 +09:00
2022-03-21 03:18:13 +00:00
2020-10-19 12:10:05 +00:00
2020-10-19 12:10:05 +00:00
2020-04-22 07:43:50 +00:00
2016-03-28 13:03:56 +02:00
2022-06-23 22:52:53 +09:00