Browse Source

Merge "Filter subnet by segment ID or None"

tags/16.0.0.0rc1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
8b7d0dcbef
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      neutron/objects/subnet.py

+ 1
- 2
neutron/objects/subnet.py View File

@@ -393,8 +393,7 @@ class Subnet(base.NeutronDbObject):
if 1 < len(segment_ids):
raise segment_exc.FixedIpsSubnetsNotOnSameSegment()

segment_id = False if not segment_ids else segment_ids[0]

segment_id = None if not segment_ids else segment_ids[0]
return query.filter(cls.db_model.segment_id == segment_id)

@classmethod


Loading…
Cancel
Save