Replace usage of 'user' by 'user_id'
DeprecationWarning: Using the 'user' argument is deprecated in version '2.18' and will be removed in version '3.0'. This patch set helps to get rid of above deprecation warning message while running unit test. Change-Id: I23fcbbdc31449fc9b0fdbb8f342148effab7dd98
This commit is contained in:
parent
0b978000a8
commit
9a07dd6f5e
|
@ -46,7 +46,7 @@ class ContextHook(hooks.PecanHook):
|
|||
is_admin = policy.check_is_admin(roles)
|
||||
|
||||
creds = {
|
||||
'user': headers.get('X-User-Id', ''),
|
||||
'user_id': headers.get('X-User-Id', ''),
|
||||
'tenant': headers.get('X-Tenant-Id', ''),
|
||||
'auth_token': headers.get('X-Auth-Token', ''),
|
||||
'is_admin': is_admin,
|
||||
|
|
Loading…
Reference in New Issue