summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/container.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-10 12:31:28 +0200
committerGitHub <noreply@github.com>2021-10-10 12:31:28 +0200
commit0a653153ef8e417def0ae341004df36a23761991 (patch)
treef02d605fabf8277f03040cf335ecf33b2932cb4a /pkg/specgen/generate/container.go
parentc1cb0162498038739d57b9b21a68eb7d93284056 (diff)
parentfad14dafe186bb6cebfd7987db9cd15aa2a23585 (diff)
downloadpodman-0a653153ef8e417def0ae341004df36a23761991.tar.gz
podman-0a653153ef8e417def0ae341004df36a23761991.tar.bz2
podman-0a653153ef8e417def0ae341004df36a23761991.zip
Merge pull request #11893 from vrothberg/vendor-common
faster image inspection
Diffstat (limited to 'pkg/specgen/generate/container.go')
-rw-r--r--pkg/specgen/generate/container.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/specgen/generate/container.go b/pkg/specgen/generate/container.go
index f126aa018..002b4ace3 100644
--- a/pkg/specgen/generate/container.go
+++ b/pkg/specgen/generate/container.go
@@ -26,7 +26,7 @@ func getImageFromSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGen
// Image may already have been set in the generator.
image, resolvedName := s.GetImage()
if image != nil {
- inspectData, err := image.Inspect(ctx, false)
+ inspectData, err := image.Inspect(ctx, nil)
if err != nil {
return nil, "", nil, err
}
@@ -39,7 +39,7 @@ func getImageFromSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGen
return nil, "", nil, err
}
s.SetImage(image, resolvedName)
- inspectData, err := image.Inspect(ctx, false)
+ inspectData, err := image.Inspect(ctx, nil)
if err != nil {
return nil, "", nil, err
}
@@ -55,7 +55,7 @@ func CompleteSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGenerat
return nil, err
}
if inspectData != nil {
- inspectData, err = newImage.Inspect(ctx, false)
+ inspectData, err = newImage.Inspect(ctx, nil)
if err != nil {
return nil, err
}