mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-03 23:01:48 +00:00
Remove quiet mode from pulling image (#968)
Fix #966 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
6ee2f3891b
commit
f4b57ac265
3 changed files with 6 additions and 2 deletions
2
.github/workflows/podman_image.yml
vendored
2
.github/workflows/podman_image.yml
vendored
|
|
@ -11,6 +11,7 @@ on:
|
|||
- 'plugins/modules/podman_image.py'
|
||||
- 'plugins/modules/podman_image_info.py'
|
||||
- 'plugins/module_utils/podman/quadlet.py'
|
||||
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||
- 'tests/integration/targets/podman_image/**'
|
||||
branches:
|
||||
- main
|
||||
|
|
@ -24,6 +25,7 @@ on:
|
|||
- 'plugins/modules/podman_image.py'
|
||||
- 'plugins/modules/podman_image_info.py'
|
||||
- 'plugins/module_utils/podman/quadlet.py'
|
||||
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||
- 'tests/integration/targets/podman_image/**'
|
||||
schedule:
|
||||
- cron: 4 0 * * * # Run daily at 0:03 UTC
|
||||
|
|
|
|||
2
.github/workflows/podman_image_info.yml
vendored
2
.github/workflows/podman_image_info.yml
vendored
|
|
@ -10,6 +10,7 @@ on:
|
|||
- 'ci/playbooks/containers/podman_image_info.yml'
|
||||
- 'plugins/modules/podman_image.py'
|
||||
- 'plugins/modules/podman_image_info.py'
|
||||
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||
- 'tests/integration/targets/podman_image_info/**'
|
||||
branches:
|
||||
- main
|
||||
|
|
@ -22,6 +23,7 @@ on:
|
|||
- 'ci/playbooks/containers/podman_image_info.yml'
|
||||
- 'plugins/modules/podman_image.py'
|
||||
- 'plugins/modules/podman_image_info.py'
|
||||
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||
- 'tests/integration/targets/podman_image_info/**'
|
||||
schedule:
|
||||
- cron: 4 0 * * * # Run daily at 0:03 UTC
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue