Merge "ensure default security group exists when filter by project_id"
This commit is contained in:
commit
8c2c1ad9f6
@ -165,7 +165,7 @@ class SecurityGroupDbMixin(ext_sg.SecurityGroupPluginBase,
|
||||
# GETS. TODO(arosen) context handling can probably be improved here.
|
||||
filters = filters or {}
|
||||
if not default_sg and context.tenant_id:
|
||||
tenant_id = filters.get('tenant_id')
|
||||
tenant_id = filters.get('project_id') or filters.get('tenant_id')
|
||||
if tenant_id:
|
||||
tenant_id = tenant_id[0]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user