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
+1
View File
@@ -539,6 +539,7 @@ def main():
client = AnsibleModuleDockerClient(
argument_spec=argument_spec,
supports_check_mode=True,
needs_api_version=False,
)
try: