mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Merge pull request #10259 from rhatdan/pull
Report Download complete in Compatibility mode
This commit is contained in:
@ -324,7 +324,11 @@ loop: // break out of for/select infinite loop
|
|||||||
flush()
|
flush()
|
||||||
case <-runCtx.Done():
|
case <-runCtx.Done():
|
||||||
if !failed {
|
if !failed {
|
||||||
|
if utils.IsLibpodRequest(r) {
|
||||||
report.Status = "Pull complete"
|
report.Status = "Pull complete"
|
||||||
|
} else {
|
||||||
|
report.Status = "Download complete"
|
||||||
|
}
|
||||||
report.Id = img[0:12]
|
report.Id = img[0:12]
|
||||||
if err := enc.Encode(report); err != nil {
|
if err := enc.Encode(report); err != nil {
|
||||||
logrus.Warnf("Failed to json encode error %q", err.Error())
|
logrus.Warnf("Failed to json encode error %q", err.Error())
|
||||||
|
Reference in New Issue
Block a user