Skip to content

Commit

Permalink
fix: throw error when node ID cannot be generated
Browse files Browse the repository at this point in the history
  • Loading branch information
chengxiangdong committed Mar 30, 2024
1 parent 30fc99f commit 68c6f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sfsturbo/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (ns *nodeServer) NodeGetInfo(_ context.Context, req *csi.NodeGetInfoRequest
macAddress, err := getMACAddress()
if err != nil {
log.Errorf("failed to get mac address: %v", err)
return &csi.NodeGetInfoResponse{}, nil
return &csi.NodeGetInfoResponse{}, fmt.Errorf("failed to gen nodeID: %v", err)
}

return &csi.NodeGetInfoResponse{
Expand Down

0 comments on commit 68c6f65

Please sign in to comment.