mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-07 00:37:06 +00:00
If `docker.__version__` contains non-digit characters, such as:
>>> import docker
>>> docker.__version__
'1.4.0-dev'
Then `get_docker_py_versioninfo` will fail with:
ValueError: invalid literal for int() with base 10: '0-de'
This patch corrects the parsing of the version string so that
`get_docker_py_versioninfo` in this example would return:
(1, 4, 0, '-dev')
|
||
|---|---|---|
| .. | ||
| ansible | ||