From 7bc463a129f76a68386d819ef853ea5da0844798 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 18 Jun 2024 15:01:30 +0200 Subject: [PATCH] Fix handling of device-discovery-strategy for GFD Signed-off-by: Evan Lezar --- cmd/gpu-feature-discovery/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gpu-feature-discovery/main.go b/cmd/gpu-feature-discovery/main.go index b751c1300..c824ffcc2 100644 --- a/cmd/gpu-feature-discovery/main.go +++ b/cmd/gpu-feature-discovery/main.go @@ -103,9 +103,9 @@ func main() { Usage: "Use NFD NodeFeature API to publish labels", EnvVars: []string{"GFD_USE_NODE_FEATURE_API", "USE_NODE_FEATURE_API"}, }, - &cli.StringSliceFlag{ + &cli.StringFlag{ Name: "device-discovery-strategy", - Value: cli.NewStringSlice("auto"), + Value: "auto", Usage: "the strategy to use to discover devices: 'auto', 'nvml', 'tegra' or 'vfio'", EnvVars: []string{"DEVICE_DISCOVERY_STRATEGY"}, },