Nit: Change from dict to object notation

Looks like we have one last occurrence of usage of dictionary notation
to access properties of the openstacksdk object. This commit replaces it
with object notation.

Change-Id: I033e6166ecfbccd5e05dba4f7d66422212bc15c9
This commit is contained in:
Michał Dulko 2023-03-08 09:53:48 +01:00
parent efd3e63b17
commit feec91cec1

View File

@ -306,6 +306,6 @@ class NestedVlanPodVIFDriver(nested_vif.NestedPodVIFDriver):
os_net = clients.get_network_client()
trunk = os_net.get_trunk(trunk_id)
for port in trunk.sub_ports:
vlan_ids.add(port['segmentation_id'])
vlan_ids.add(port.segmentation_id)
return vlan_ids