summaryrefslogtreecommitdiff
path: root/nova/network/neutron.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-05-04 10:31:26 +0000
committerGerrit Code Review <review@openstack.org>2023-05-04 10:31:26 +0000
commit8e4a7290f8467f1e915f3bb494ce61ade5aa511c (patch)
treef16c6a630d141217608ac68fa7a84250d2d8b630 /nova/network/neutron.py
parentcb2cdee4c9c8ca91089aae6254a3e9e39ab639ea (diff)
parent6d7bd6a03446d5227d515b2b4c0da632ef4aa4a1 (diff)
downloadnova-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.py2
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,