diff options
author | haircommander <pehunt@redhat.com> | 2018-08-16 11:25:09 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-16 20:31:50 +0000 |
commit | 309a2a15aebad35be753e65485ef6e10c62ef8bb (patch) | |
tree | 3a5af04d27332ecfe197488ba77d92dd3cd20b2f /pkg/varlinkapi | |
parent | a51eb1e70f3647fb5e3126a50a3458fcf486af16 (diff) | |
download | podman-309a2a15aebad35be753e65485ef6e10c62ef8bb.tar.gz podman-309a2a15aebad35be753e65485ef6e10c62ef8bb.tar.bz2 podman-309a2a15aebad35be753e65485ef6e10c62ef8bb.zip |
CreatePod args now PodCreate structure
Signed-off-by: haircommander <pehunt@redhat.com>
Closes: #1275
Approved by: mheon
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r-- | pkg/varlinkapi/pods.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/varlinkapi/pods.go b/pkg/varlinkapi/pods.go index be5e3614c..a987574b2 100644 --- a/pkg/varlinkapi/pods.go +++ b/pkg/varlinkapi/pods.go @@ -10,16 +10,16 @@ import ( ) // CreatePod ... -func (i *LibpodAPI) CreatePod(call iopodman.VarlinkCall, name, cgroupParent string, labels map[string]string) error { +func (i *LibpodAPI) CreatePod(call iopodman.VarlinkCall, create iopodman.PodCreate) error { var options []libpod.PodCreateOption - if cgroupParent != "" { - options = append(options, libpod.WithPodCgroupParent(cgroupParent)) + if create.CgroupParent != "" { + options = append(options, libpod.WithPodCgroupParent(create.CgroupParent)) } - if len(labels) > 0 { - options = append(options, libpod.WithPodLabels(labels)) + if len(create.Labels) > 0 { + options = append(options, libpod.WithPodLabels(create.Labels)) } - if name != "" { - options = append(options, libpod.WithPodName(name)) + if create.Name != "" { + options = append(options, libpod.WithPodName(create.Name)) } options = append(options, libpod.WithPodCgroups()) |