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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user