Support management mode in nvidia-ctk cdi generate

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-03-01 13:22:57 +02:00
parent 29cbbe83f9
commit f7e817cff6

View File

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