summaryrefslogtreecommitdiff
path: root/pkg/spec/spec.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-21 12:09:46 -0800
committerGitHub <noreply@github.com>2018-12-21 12:09:46 -0800
commitfe186c6ebba95db89463f38c6aa0f0dcc104a249 (patch)
treed2a815c62bae205b0ea80ac72ec72542c98131ce /pkg/spec/spec.go
parentfa568e04d6b6032ca3bdf39ee4fd1ca1856be85a (diff)
parent1ad6f9af1552cbe2119af6cda83db5b3908556db (diff)
downloadpodman-fe186c6ebba95db89463f38c6aa0f0dcc104a249.tar.gz
podman-fe186c6ebba95db89463f38c6aa0f0dcc104a249.tar.bz2
podman-fe186c6ebba95db89463f38c6aa0f0dcc104a249.zip
Merge pull request #2033 from rhatdan/devices
Allow users to specify a directory for additonal devices
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
}
}