diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-04 10:31:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-04 10:31:26 +0000 |
commit | 8e4a7290f8467f1e915f3bb494ce61ade5aa511c (patch) | |
tree | f16c6a630d141217608ac68fa7a84250d2d8b630 /nova/network/neutron.py | |
parent | cb2cdee4c9c8ca91089aae6254a3e9e39ab639ea (diff) | |
parent | 6d7bd6a03446d5227d515b2b4c0da632ef4aa4a1 (diff) | |
download | nova-8e4a7290f8467f1e915f3bb494ce61ade5aa511c.tar.gz |
Merge "Fix get_segments_id with subnets without segment_id"
Diffstat (limited to 'nova/network/neutron.py')
-rw-r--r-- | nova/network/neutron.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/network/neutron.py b/nova/network/neutron.py index 6c9f19f010..0ae0f4099f 100644 --- a/nova/network/neutron.py +++ b/nova/network/neutron.py @@ -3907,7 +3907,7 @@ class API: 'Failed to get segment IDs for network %s' % network_id) from e # The segment field of an unconfigured subnet could be None return [subnet['segment_id'] for subnet in subnets - if subnet['segment_id'] is not None] + if subnet.get('segment_id') is not None] def get_segment_id_for_subnet( self, |