1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00
ansible-podman-collections/plugins/module_utils/podman
Adam Williamson 7d7445d29b
podman pod info: handle return being list in Podman 5 (#713)
Fixes #712

Podman 5 changed the output of `podman pod info` (when run on a
single pod) from being a dict to being a list of dicts:

https://github.com/containers/podman/pull/21514

this should handle both ways. Unfortunately not sure how to add
a test for this as I can't see a unit test that mocks the output
of the command, only the integration test that gets real live
output, and I'm not sure how to get that test run with Podman 5.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-17 21:47:19 +02:00
..
__init__.py Migration of Podman modules from Ansible to Containers 2020-03-06 16:29:20 +02:00
common.py Add option to parse CreateCommand easily for diff calc (#698) 2024-01-11 15:30:24 +02:00
podman_container_lib.py Update env_file to accept a list of files instead of a single file (#702) 2024-01-25 14:04:40 +02:00
podman_pod_lib.py podman pod info: handle return being list in Podman 5 (#713) 2024-02-17 21:47:19 +02:00