mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Resolve docker 6.0.0 version issue
This commit is contained in:
parent
9d7307332f
commit
1bbf8d6b18
1 changed files with 6 additions and 1 deletions
|
@ -344,7 +344,12 @@ def _get_docker_py_versioninfo():
|
|||
try:
|
||||
return docker.version_info
|
||||
except AttributeError:
|
||||
pass
|
||||
# docker 6.0.0+ exposes version from __version__ attribute
|
||||
try:
|
||||
docker_version = docker.__version__.split(".")
|
||||
return tuple(int(n) for n in docker_version)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
||||
def _get_client(timeout=NOTSET, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue