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:
Erik Olof Gunnar Andersson
2019-06-02 13:18:49 -07:00
parent fc5700bd61
commit 03b390dee5
24 changed files with 252 additions and 238 deletions

View File

@@ -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,