aboutsummaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-05-07 11:50:28 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-05-07 11:53:19 -0400
commit3757d8820d3979ca2cb379b8f23e2343a8280a02 (patch)
tree1513f81c00c251b1e087083e35360164198977a9 /pkg/api
parent5616887f62b4bed1031cdade8bd602bc2cb9d8f4 (diff)
downloadpodman-3757d8820d3979ca2cb379b8f23e2343a8280a02.tar.gz
podman-3757d8820d3979ca2cb379b8f23e2343a8280a02.tar.bz2
podman-3757d8820d3979ca2cb379b8f23e2343a8280a02.zip
Report Download complete in Compatibility mode
Fixes: https://github.com/containers/podman/issues/10258 [NO TESTS NEEDED] Difficult to create tests for this. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/compat/images.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/images.go b/pkg/api/handlers/compat/images.go
index 0b9367a17..150b093c2 100644
--- a/pkg/api/handlers/compat/images.go
+++ b/pkg/api/handlers/compat/images.go
@@ -324,7 +324,11 @@ loop: // break out of for/select infinite loop
flush()
case <-runCtx.Done():
if !failed {
- report.Status = "Pull complete"
+ if utils.IsLibpodRequest(r) {
+ report.Status = "Pull complete"
+ } else {
+ report.Status = "Download complete"
+ }
report.Id = img[0:12]
if err := enc.Encode(report); err != nil {
logrus.Warnf("Failed to json encode error %q", err.Error())