Skip to content

Commit

Permalink
Merge pull request #10259 from rhatdan/pull
Browse files Browse the repository at this point in the history
Report Download complete in Compatibility mode
  • Loading branch information
openshift-merge-robot authored May 7, 2021
2 parents d3e441f + 3757d88 commit 141d3f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/api/handlers/compat/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 141d3f1

Please sign in to comment.