Skip to content

Commit

Permalink
Merge pull request #48 from OpenCHAMI/45-hotfix
Browse files Browse the repository at this point in the history
Fixed getting ethernet interfaces in CollectEthernetInterfaces()
  • Loading branch information
davidallendj authored Aug 1, 2024
2 parents 777aa3c + f3427b0 commit f4ee1e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f4ee1e1

Please sign in to comment.