Skip to content

Commit 8fcbc57

Browse files
committed
fix: normalize UUID to lowercase in nodediscovery
1 parent 9d5f25c commit 8fcbc57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/nodediscovery/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"flag"
77
"fmt"
88
"os"
9+
"strings"
910

1011
"github.com/NVIDIA/go-nvml/pkg/nvml"
1112
tfv1 "github.com/NexusGPU/tensor-fusion-operator/api/v1"
@@ -88,7 +89,7 @@ func main() {
8889
ctrl.Log.Error(errors.New(nvml.ErrorString(ret)), "unable to get uuid of device", "index", i)
8990
os.Exit(1)
9091
}
91-
92+
uuid = strings.ToLower(uuid)
9293
deviceName, ret := device.GetName()
9394
if ret != nvml.SUCCESS {
9495
ctrl.Log.Error(errors.New(nvml.ErrorString(ret)), "unable to get name of device", "index", i)

0 commit comments

Comments
 (0)