mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +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.py'
|
||||||
- 'plugins/modules/podman_image_info.py'
|
- 'plugins/modules/podman_image_info.py'
|
||||||
- 'plugins/module_utils/podman/quadlet.py'
|
- 'plugins/module_utils/podman/quadlet.py'
|
||||||
|
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||||
- 'tests/integration/targets/podman_image/**'
|
- 'tests/integration/targets/podman_image/**'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
@ -24,6 +25,7 @@ on:
|
||||||
- 'plugins/modules/podman_image.py'
|
- 'plugins/modules/podman_image.py'
|
||||||
- 'plugins/modules/podman_image_info.py'
|
- 'plugins/modules/podman_image_info.py'
|
||||||
- 'plugins/module_utils/podman/quadlet.py'
|
- 'plugins/module_utils/podman/quadlet.py'
|
||||||
|
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||||
- 'tests/integration/targets/podman_image/**'
|
- 'tests/integration/targets/podman_image/**'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 4 0 * * * # Run daily at 0:03 UTC
|
- 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'
|
- 'ci/playbooks/containers/podman_image_info.yml'
|
||||||
- 'plugins/modules/podman_image.py'
|
- 'plugins/modules/podman_image.py'
|
||||||
- 'plugins/modules/podman_image_info.py'
|
- 'plugins/modules/podman_image_info.py'
|
||||||
|
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||||
- 'tests/integration/targets/podman_image_info/**'
|
- 'tests/integration/targets/podman_image_info/**'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
@ -22,6 +23,7 @@ on:
|
||||||
- 'ci/playbooks/containers/podman_image_info.yml'
|
- 'ci/playbooks/containers/podman_image_info.yml'
|
||||||
- 'plugins/modules/podman_image.py'
|
- 'plugins/modules/podman_image.py'
|
||||||
- 'plugins/modules/podman_image_info.py'
|
- 'plugins/modules/podman_image_info.py'
|
||||||
|
- 'plugins/module_utils/podman/podman_image_lib.py'
|
||||||
- 'tests/integration/targets/podman_image_info/**'
|
- 'tests/integration/targets/podman_image_info/**'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 4 0 * * * # Run daily at 0:03 UTC
|
- 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):
|
def pull_image(self, image_name, arch=None, pull_extra_args=None):
|
||||||
"""Pull an image from a registry."""
|
"""Pull an image from a registry."""
|
||||||
args = ["pull", image_name, "-q"]
|
args = ["pull", image_name]
|
||||||
|
|
||||||
if arch:
|
if arch:
|
||||||
args.extend(["--arch", 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)
|
rc, out, err = run_podman_command(self.module, self.executable, args, ignore_errors=True)
|
||||||
|
|
||||||
if rc != 0:
|
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
|
return out.strip(), podman_command
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue