Skip to content

Commit

Permalink
refactor: updated endpoints to include /hms/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
davidallendj committed Dec 9, 2024
1 parent 24fb476 commit 86d4abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/smdclient/SMDclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (s *SMDClient) getSMD(ep string, smd interface{}) error {
// with the corresponding node information, including MAC addresses, IP addresses, and descriptions.
func (s *SMDClient) PopulateNodes() {
var ethIfaceArray []sm.CompEthInterfaceV2
ep := "/Inventory/EthernetInterfaces/"
ep := "/hsm/v2/Inventory/EthernetInterfaces/"
if err := s.getSMD(ep, &ethIfaceArray); err != nil {
log.Error().Err(err).Msg("Failed to get SMD data")
return
Expand Down Expand Up @@ -268,7 +268,7 @@ func (s *SMDClient) GroupMembership(id string) ([]string, error) {

func (s *SMDClient) ComponentInformation(id string) (base.Component, error) {
var node base.Component
ep := "/State/Components/" + id
ep := "/hsm/v2/State/Components/" + id
err := s.getSMD(ep, &node)
if err != nil {
return node, err
Expand Down

0 comments on commit 86d4abb

Please sign in to comment.