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) }