Skip to content

Commit

Permalink
validate: ignore validation of CDI devices
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Nov 21, 2022
1 parent 642ec30 commit 8576007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/config/config_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strings"
"syscall"

cdi "github.com/container-orchestrated-devices/container-device-interface/pkg/cdi"
units "github.com/docker/go-units"
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8576007

Please sign in to comment.