Updated context to use project_id
Fixed a bunch of deprecated warnings from oslo.context. * Use project_id instead of tenant. * Use user_id, domain_id etc. Change-Id: I6e8affbabeca4162f11fb4ba47ffa2e960103ccd
This commit is contained in:
@@ -1489,8 +1489,8 @@ class SQLAlchemyStorage(sqlalchemy_base.SQLAlchemy, storage_base.Storage):
|
||||
|
||||
if not context.all_tenants:
|
||||
query = query.where(or_(
|
||||
table.c.tenant_id == context.tenant,
|
||||
table.c.target_tenant_id == context.tenant))
|
||||
table.c.tenant_id == context.project_id,
|
||||
table.c.target_tenant_id == context.project_id))
|
||||
|
||||
return self._find(
|
||||
context, table, objects.ZoneTransferRequest,
|
||||
|
||||
Reference in New Issue
Block a user