Skip to content

Commit 0403911

Browse files
authored
Merge pull request #775 from elezar/fix-gfd-device-discovery-strategy
Fix handling of device-discovery-strategy for GFD
2 parents ad4aae5 + 7bc463a commit 0403911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/gpu-feature-discovery/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ func main() {
103103
Usage: "Use NFD NodeFeature API to publish labels",
104104
EnvVars: []string{"GFD_USE_NODE_FEATURE_API", "USE_NODE_FEATURE_API"},
105105
},
106-
&cli.StringSliceFlag{
106+
&cli.StringFlag{
107107
Name: "device-discovery-strategy",
108-
Value: cli.NewStringSlice("auto"),
108+
Value: "auto",
109109
Usage: "the strategy to use to discover devices: 'auto', 'nvml', 'tegra' or 'vfio'",
110110
EnvVars: []string{"DEVICE_DISCOVERY_STRATEGY"},
111111
},

0 commit comments

Comments
 (0)