From ec9508ea177a50ff3361a9ef14efbe1ff6baf05d Mon Sep 17 00:00:00 2001 From: Vladimir Kochnev Date: Wed, 17 Aug 2022 03:56:25 +0300 Subject: Pass io.Writer when pushing images/manifests from command line [NO NEW TESTS NEEDED] Signed-off-by: Vladimir Kochnev --- cmd/podman/images/push.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman/images') diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go index 1734900de..fa60860db 100644 --- a/cmd/podman/images/push.go +++ b/cmd/podman/images/push.go @@ -164,6 +164,10 @@ func imagePush(cmd *cobra.Command, args []string) error { pushOptions.Password = creds.Password } + if !pushOptions.Quiet { + pushOptions.Writer = os.Stderr + } + if err := common.PrepareSigningPassphrase(&pushOptions.ImagePushOptions, pushOptions.SignPassphraseFileCLI); err != nil { return err } -- cgit v1.2.3-54-g00ecf