use context to get project_id and user_id

Change-Id: I87f07ea2259e13a40491f4d1f7fa3c14bc88f16f
This commit is contained in:
Shaohe Feng 2018-10-24 12:40:30 +00:00
parent e825772101
commit 55ed3e2649
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ class ResourceTracker(object):
'uuid': uuidutils.generate_uuid(),
'name': name,
'description': desc,
'project_id': pecan.request.context.project_id,
'user_id': pecan.request.context.user_id,
'project_id': context.project_id,
'user_id': context.user_id,
'device_type': dev_type,
'acc_type': acc_type,
'acc_capability': acc_cap,