Fixed getting ethernet interfaces in CollectEthernetInterfaces()

This commit is contained in:
David Allen 2024-08-01 12:48:05 -06:00
parent 0a6fb84d14
commit f3427b0de9
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -249,8 +249,7 @@ func CollectEthernetInterfaces(c *gofish.APIClient, q *QueryParams, systemID str
// get all of the ethernet interfaces in our systems
for _, system := range systems {
system.EthernetInterfaces()
eth, err := redfish.ListReferencedEthernetInterfaces(c, "/redfish/v1/Systems/"+system.ID+"/EthernetInterfaces")
eth, err := system.EthernetInterfaces()
if err != nil {
errList = append(errList, err)
}