Skip to content

Commit 1605036

Browse files
ralonsohkarelyatin
authored andcommitted
Adopt to StandardAttribute load method change to "selectin"
Required since the Depends-On patch included, without it postgres job fails with:- AttributeError: 'NoneType' object has no attribute 'id' Depends-On: https://review.opendev.org/c/openstack/neutron-lib/+/923926 Related-Bug: #2072567 Change-Id: I8f2229eb0a9d8dce927ded004037eda93ce3650d (cherry picked from commit f17cc24)
1 parent 271bb48 commit 1605036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neutron/db/db_base_plugin_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ def _make_port_dict(self, port, fields=None,
227227
bulk=False):
228228
if isinstance(port, port_obj.Port):
229229
port_data = port.db_obj
230-
standard_attr_id = port.db_obj.standard_attr.id
230+
standard_attr_id = port.db_obj.standard_attr_id
231231
else:
232232
port_data = port
233-
standard_attr_id = port.standard_attr.id
233+
standard_attr_id = port.standard_attr_id
234234

235235
mac = port["mac_address"]
236236
if isinstance(mac, netaddr.EUI):

0 commit comments

Comments
 (0)