summaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-04-13 10:53:24 -0500
committerBrent Baude <bbaude@redhat.com>2020-04-13 13:08:04 -0500
commit90ead05903e9c42758c1052c2ee623dca8de5e98 (patch)
tree60fc9e4b574c4b2d927c62907e27e7902440a51f /pkg/domain/entities
parent465b4bc563b274ec166868aae079a65ee0284b1d (diff)
downloadpodman-90ead05903e9c42758c1052c2ee623dca8de5e98.tar.gz
podman-90ead05903e9c42758c1052c2ee623dca8de5e98.tar.bz2
podman-90ead05903e9c42758c1052c2ee623dca8de5e98.zip
Fixes for load and other system tests
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/pods.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/domain/entities/pods.go b/pkg/domain/entities/pods.go
index cd2e79961..9ca8ff43c 100644
--- a/pkg/domain/entities/pods.go
+++ b/pkg/domain/entities/pods.go
@@ -1,6 +1,7 @@
package entities
import (
+ "strings"
"time"
"github.com/containers/libpod/libpod"
@@ -121,7 +122,9 @@ func (p PodCreateOptions) ToPodSpecGen(s *specgen.PodSpecGenerator) {
s.Hostname = p.Hostname
s.Labels = p.Labels
s.NoInfra = !p.Infra
- s.InfraCommand = []string{p.InfraCommand}
+ if len(p.InfraCommand) > 0 {
+ s.InfraCommand = strings.Split(p.InfraCommand, " ")
+ }
s.InfraImage = p.InfraImage
s.SharedNamespaces = p.Share