Merge "Improve AddressScope.get_bound_tenant_ids method"
This commit is contained in:
commit
6a7b52a2c8
|
@ -71,6 +71,5 @@ class AddressScope(rbac_db.NeutronRbacObject):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_bound_tenant_ids(cls, context, obj_id):
|
def get_bound_tenant_ids(cls, context, obj_id):
|
||||||
snp_objs = subnetpool.SubnetPool.get_objects(
|
snp_objs = subnetpool.SubnetPool.get_objects(
|
||||||
context, address_scope_id=obj_id
|
context, address_scope_id=obj_id, fields=['project_id'])
|
||||||
)
|
return {snp['project_id'] for snp in snp_objs}
|
||||||
return {snp.project_id for snp in snp_objs}
|
|
||||||
|
|
Loading…
Reference in New Issue