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
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

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