aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-01 06:46:54 -0500
committerGitHub <noreply@github.com>2022-02-01 06:46:54 -0500
commitbaf0dfcac2576922cea8fcd813362757e1dfbdea (patch)
tree0bbb6d4be98e09119746fcb5d3d585212ee8add0 /pkg
parent271867263c334460ee404cc5059a9453e47171f7 (diff)
parent6609bb73aae2185571ff7e793dfa268f04643874 (diff)
downloadpodman-baf0dfcac2576922cea8fcd813362757e1dfbdea.tar.gz
podman-baf0dfcac2576922cea8fcd813362757e1dfbdea.tar.bz2
podman-baf0dfcac2576922cea8fcd813362757e1dfbdea.zip
Merge pull request #13064 from rhatdan/pause
Fix use of infra image to clarify default
Diffstat (limited to 'pkg')
-rw-r--r--pkg/specgen/generate/pod_create.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/specgen/generate/pod_create.go b/pkg/specgen/generate/pod_create.go
index 369ebda58..03829e8cf 100644
--- a/pkg/specgen/generate/pod_create.go
+++ b/pkg/specgen/generate/pod_create.go
@@ -82,7 +82,7 @@ func pullOrBuildInfraImage(p *entities.PodSpec, rt *libpod.Runtime) error {
imageName = rtConfig.Engine.InfraImage
}
- if imageName != config.DefaultInfraImage {
+ if imageName != "" {
_, err := rt.LibimageRuntime().Pull(context.Background(), imageName, config.PullPolicyMissing, nil)
if err != nil {
return err
@@ -278,8 +278,6 @@ func MapSpec(p *specgen.PodSpecGenerator) (*specgen.SpecGenerator, error) {
p.InfraContainerSpec.ConmonPidFile = p.InfraConmonPidFile
}
- if p.InfraImage != config.DefaultInfraImage {
- p.InfraContainerSpec.Image = p.InfraImage
- }
+ p.InfraContainerSpec.Image = p.InfraImage
return p.InfraContainerSpec, nil
}