TVD: fix get_<>s but plugin with filters

When getting networks/ports/etc with filters, we should filter by
the context plugin even if filters are added to the request

Change-Id: I25c8df14cb5958842518557a302264995bcbb7d7
This commit is contained in:
Adit Sarfaty 2018-02-06 01:21:46 +02:00
parent da500f1e84
commit bee5dc6f2d

@ -319,11 +319,8 @@ class NsxTVDPlugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
project_id = filters.get('tenant_id')
elif filters.get('project_id'):
project_id = filters.get('project_id')
else:
# A specific filter request is made. So here we
# will not filter according to the plugin.
return
# If there are multiple tenants/prijects being requested then
# If there are multiple tenants/projects being requested then
# we will not filter according to the plugin
if isinstance(project_id, list):
return