Skip to content

Commit

Permalink
Make nodeID either node UUID or SDC GUID
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathsreekanth committed Sep 27, 2024
1 parent 27c22bd commit 7863443
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -771,18 +771,18 @@ func (s *service) NodeGetInfo(
topology[Name+"/"+array.SystemID] = SystemTopologySystemValue
}

nodeUID, err := GetNodeUID(ctx, s)
nodeID, err := GetNodeUID(ctx, s)
if err != nil {
return nil, status.Error(codes.InvalidArgument, GetMessage("Could not fetch node UID"))
}

if s.opts.SdcGUID != "" {
nodeUID = fmt.Sprintf("%s-%s", nodeUID, s.opts.SdcGUID)
nodeID = s.opts.SdcGUID
}

Log.Debugf("NodeId: %v\n", nodeUID)
Log.Debugf("NodeId: %v\n", nodeID)
return &csi.NodeGetInfoResponse{
NodeId: nodeUID,
NodeId: nodeID,
AccessibleTopology: &csi.Topology{
Segments: topology,
},
Expand Down

0 comments on commit 7863443

Please sign in to comment.