diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-28 06:24:01 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-02-03 14:45:29 -0500 |
commit | 178cccbf9eaab103460694c37f16e6e40773866a (patch) | |
tree | 4ed5d7bc1b68afa86b8689db54a7e7e5e5c21068 /pkg/specgen/generate | |
parent | 97c8bdfebecb699142c1dd4134250227faed2574 (diff) | |
download | podman-178cccbf9eaab103460694c37f16e6e40773866a.tar.gz podman-178cccbf9eaab103460694c37f16e6e40773866a.tar.bz2 podman-178cccbf9eaab103460694c37f16e6e40773866a.zip |
Fix use of infra image to clarify default
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r-- | pkg/specgen/generate/pod_create.go | 6 |
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 } |