aboutsummaryrefslogtreecommitdiff
path: root/pkg/spec/spec.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-12-19 15:26:08 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2018-12-21 10:28:14 -0500
commit1ad6f9af1552cbe2119af6cda83db5b3908556db (patch)
tree5dea01af8daf2f9a4017de2acff506e170508be0 /pkg/spec/spec.go
parent4d1326240501312d60bce184db7f63d9e5cfae49 (diff)
downloadpodman-1ad6f9af1552cbe2119af6cda83db5b3908556db.tar.gz
podman-1ad6f9af1552cbe2119af6cda83db5b3908556db.tar.bz2
podman-1ad6f9af1552cbe2119af6cda83db5b3908556db.zip
Allow users to specify a directory for additonal devices
Podman will search through the directory and will add any device nodes that it finds. If no devices are found we return an error. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/spec/spec.go')
-rw-r--r--pkg/spec/spec.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index 05be00864..c90f16f7c 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -235,8 +235,8 @@ func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint
}
}
} else {
- for _, device := range config.Devices {
- if err := addDevice(&g, device); err != nil {
+ for _, devicePath := range config.Devices {
+ if err := devicesFromPath(&g, devicePath); err != nil {
return nil, err
}
}