CLI modules: improve docker version/info output processing, avoid querying for API version if it's not needed (#935)

* Don't assume that docker version/info JSON output contains the expected fields.

* Allow CLI modules to not require the API version.

* Add changelog fragment.
This commit is contained in:
Felix Fontein
2024-07-20 15:51:02 +02:00
committed by GitHub
parent a30fd93a44
commit 22bbfbaf8b
5 changed files with 30 additions and 9 deletions
+4
View File
@@ -0,0 +1,4 @@
bugfixes:
- "docker_compose_v2* modules, docker_image_build - provide better error message when required fields are not present in ``docker version``
or ``docker info`` output. This can happen if Podman is used instead of Docker
(https://github.com/ansible-collections/community.docker/issues/891, https://github.com/ansible-collections/community.docker/pull/935)."