From f7e817cff65696f4f9e699841a02f110ab00479f Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 1 Mar 2023 13:22:57 +0200 Subject: [PATCH] Support management mode in nvidia-ctk cdi generate Signed-off-by: Evan Lezar --- cmd/nvidia-ctk/cdi/generate/generate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/nvidia-ctk/cdi/generate/generate.go b/cmd/nvidia-ctk/cdi/generate/generate.go index c235c90f..c472ae59 100644 --- a/cmd/nvidia-ctk/cdi/generate/generate.go +++ b/cmd/nvidia-ctk/cdi/generate/generate.go @@ -129,6 +129,7 @@ func (m command) validateFlags(c *cli.Context, cfg *config) error { case nvcdi.ModeAuto: case nvcdi.ModeNvml: case nvcdi.ModeWsl: + case nvcdi.ModeManagement: default: return fmt.Errorf("invalid discovery mode: %v", cfg.discoveryMode) }