Merge pull request #10259 from rhatdan/pull

Report Download complete in Compatibility mode
This commit is contained in:
OpenShift Merge Robot 2021-05-07 15:06:51 -04:00 committed by GitHub
commit 141d3f1ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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())