From dc40f9b26bb669fd6d261a2647f6041582d94d72 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 21 Nov 2022 22:13:32 +0100 Subject: [PATCH] validate: ignore validation of CDI devices Signed-off-by: Giuseppe Scrivano --- pkg/config/config_local.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/config/config_local.go b/pkg/config/config_local.go index bc8ddc655..e101b0621 100644 --- a/pkg/config/config_local.go +++ b/pkg/config/config_local.go @@ -11,6 +11,7 @@ import ( "strings" "syscall" + "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi" units "github.com/docker/go-units" ) @@ -57,6 +58,9 @@ func (c *EngineConfig) validatePaths() error { func (c *ContainersConfig) validateDevices() error { for _, d := range c.Devices { + if cdi.IsQualifiedName(d) { + continue + } _, _, _, err := Device(d) if err != nil { return err