fix port name in Port resource

The name of the port is in the 'name' field coming back from the API and
not in the 'port_name' field.

Change-Id: Iad986ea693396a1bdb93345c7c9e778560ae7c06
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein
2024-10-30 09:40:05 -05:00
parent 6647a26f59
commit 2caa47fdf0
3 changed files with 6 additions and 3 deletions

View File

@@ -806,7 +806,7 @@ class TestBaremetalPortList(TestBaremetalPort):
'Local Link Connection', 'Portgroup UUID', 'Local Link Connection', 'Portgroup UUID',
'PXE boot enabled', 'Physical Network', 'Updated At', 'PXE boot enabled', 'Physical Network', 'Updated At',
'Internal Info', 'Is Smart NIC port', 'Internal Info', 'Is Smart NIC port',
'Port Name') 'Name')
self.assertEqual(collist, columns) self.assertEqual(collist, columns)
datalist = (( datalist = ((

View File

@@ -157,7 +157,6 @@ class Resource(object):
'parent_node': 'Parent Node', 'parent_node': 'Parent Node',
'children': 'Child Nodes', 'children': 'Child Nodes',
'firmware_interface': 'Firmware Interface', 'firmware_interface': 'Firmware Interface',
'port_name': 'Port Name',
'public': 'Public' 'public': 'Public'
} }
@@ -347,7 +346,7 @@ PORT_DETAILED_RESOURCE = Resource(
'updated_at', 'updated_at',
'internal_info', 'internal_info',
'is_smartnic', 'is_smartnic',
'port_name', 'name',
], ],
sort_excluded=[ sort_excluded=[
'extra', 'extra',

View File

@@ -0,0 +1,4 @@
---
fixes:
- |
Display correct field for the port name of the Port resource.