Skip to content

Commit 7bc463a

Browse files
committed
Fix handling of device-discovery-strategy for GFD
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent ad4aae5 commit 7bc463a

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)