summaryrefslogtreecommitdiff
path: root/pkg/api/handlers
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-16 15:46:33 +0000
committerGitHub <noreply@github.com>2021-08-16 15:46:33 +0000
commit8c228bdbd031e5930e6319e8fe25b3ff340919f3 (patch)
treef78d327c04dc6fd1186a47ecc7c292a270ab54c2 /pkg/api/handlers
parent26b1dddda7aca89e57608ea232e84a1802591562 (diff)
parent12ac4198caa0e0493f22b6f611023266449253d8 (diff)
downloadpodman-8c228bdbd031e5930e6319e8fe25b3ff340919f3.tar.gz
podman-8c228bdbd031e5930e6319e8fe25b3ff340919f3.tar.bz2
podman-8c228bdbd031e5930e6319e8fe25b3ff340919f3.zip
Merge pull request #11154 from cdoern/imagesPull
Libpod images pull changes
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r--pkg/api/handlers/libpod/images_pull.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/api/handlers/libpod/images_pull.go b/pkg/api/handlers/libpod/images_pull.go
index 04b415638..3c13c6e20 100644
--- a/pkg/api/handlers/libpod/images_pull.go
+++ b/pkg/api/handlers/libpod/images_pull.go
@@ -33,6 +33,7 @@ func ImagesPull(w http.ResponseWriter, r *http.Request) {
TLSVerify bool `schema:"tlsVerify"`
AllTags bool `schema:"allTags"`
PullPolicy string `schema:"policy"`
+ Quiet bool `schema:"quiet"`
}{
TLSVerify: true,
PullPolicy: "always",
@@ -116,8 +117,10 @@ func ImagesPull(w http.ResponseWriter, r *http.Request) {
select {
case s := <-writer.Chan():
report.Stream = string(s)
- if err := enc.Encode(report); err != nil {
- logrus.Warnf("Failed to encode json: %v", err)
+ if !query.Quiet {
+ if err := enc.Encode(report); err != nil {
+ logrus.Warnf("Failed to encode json: %v", err)
+ }
}
flush()
case <-runCtx.Done():