Merge pull request #48 from OpenCHAMI/45-hotfix

Fixed getting ethernet interfaces in CollectEthernetInterfaces()
This commit is contained in:
David Allen 2024-08-01 15:31:00 -06:00 committed by GitHub
commit f4ee1e1738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)
}