summaryrefslogtreecommitdiff
path: root/pkg/spec
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-06-27 09:01:11 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-27 15:16:02 +0000
commitc32c491869c58e9b0f70ebc58221c28b342f1e1d (patch)
tree8e79d821bb0d6463bcbaa641151edd1aaa7af195 /pkg/spec
parente1b47c15076680d318aa6fd0cb650ad89b471022 (diff)
downloadpodman-c32c491869c58e9b0f70ebc58221c28b342f1e1d.tar.gz
podman-c32c491869c58e9b0f70ebc58221c28b342f1e1d.tar.bz2
podman-c32c491869c58e9b0f70ebc58221c28b342f1e1d.zip
generator.New() requires an OS string input variable
Signed-off-by: baude <bbaude@redhat.com> Closes: #1007 Approved by: baude
Diffstat (limited to 'pkg/spec')
-rw-r--r--pkg/spec/spec.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go
index 565c07014..d407b419a 100644
--- a/pkg/spec/spec.go
+++ b/pkg/spec/spec.go
@@ -21,7 +21,10 @@ const cpuPeriod = 100000
// CreateConfigToOCISpec parses information needed to create a container into an OCI runtime spec
func CreateConfigToOCISpec(config *CreateConfig) (*spec.Spec, error) { //nolint
cgroupPerm := "ro"
- g := generate.New()
+ g, err := generate.New("linux")
+ if err != nil {
+ return nil, err
+ }
g.HostSpecific = true
addCgroup := true
if config.Privileged {