summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-07 15:06:51 -0400
committerGitHub <noreply@github.com>2021-05-07 15:06:51 -0400
commit141d3f1ac33de5c9642cc089fbd526d0ab1f5250 (patch)
tree7676609ab7d74ce0197394951fecd0a2a848d968 /pkg
parentd3e441fda30300a19836ac0c7555ccd282e5d340 (diff)
parent3757d8820d3979ca2cb379b8f23e2343a8280a02 (diff)
downloadpodman-141d3f1ac33de5c9642cc089fbd526d0ab1f5250.tar.gz
podman-141d3f1ac33de5c9642cc089fbd526d0ab1f5250.tar.bz2
podman-141d3f1ac33de5c9642cc089fbd526d0ab1f5250.zip
Merge pull request #10259 from rhatdan/pull
Report Download complete in Compatibility mode
Diffstat (limited to 'pkg')
-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 4b7a2a71c..cd03f5fe0 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())