(cherry picked from commit 89f239f187)
This commit is contained in:
Felix Fontein 2018-10-18 15:50:26 +02:00 committed by Toshio Kuratomi
parent 441e6fdcc1
commit dcdd8c2544

View file

@ -183,7 +183,7 @@ class AnsibleDockerClient(Client):
required_together=required_together_params,
required_if=required_if)
NEEDS_DOCKER_PY2 = (LooseVersion(min_docker_version) < LooseVersion('2.0'))
NEEDS_DOCKER_PY2 = (LooseVersion(min_docker_version) >= LooseVersion('2.0.0'))
if HAS_DOCKER_MODELS and HAS_DOCKER_SSLADAPTER:
self.fail("Cannot have both the docker-py and docker python modules installed together as they use the same namespace and "