1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-03-22 02:29:08 +00:00

Remove quiet mode from pulling image (#968)

Fix #966

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2025-08-18 22:51:19 +03:00 committed by GitHub
parent 6ee2f3891b
commit f4b57ac265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -270,7 +270,7 @@ class PodmanImagePuller:
def pull_image(self, image_name, arch=None, pull_extra_args=None):
"""Pull an image from a registry."""
args = ["pull", image_name, "-q"]
args = ["pull", image_name]
if arch:
args.extend(["--arch", arch])
@ -285,7 +285,7 @@ class PodmanImagePuller:
rc, out, err = run_podman_command(self.module, self.executable, args, ignore_errors=True)
if rc != 0:
self.module.fail_json(msg=f"Failed to pull image {image_name}: {err}")
self.module.fail_json(msg=f"Failed to pull image {image_name}", stderr=err, stdout=out)
return out.strip(), podman_command