1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Missing min version in string format (#48715)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-11-15 18:43:39 +05:30 committed by ansibot
parent c66e16097f
commit 5126068a19

View file

@ -219,9 +219,10 @@ def main():
)
# Version checks
if client.module.params['builder_cache'] and LooseVersion(docker_version) < LooseVersion('3.3.0'):
cache_min_version = '3.3.0'
if client.module.params['builder_cache'] and LooseVersion(docker_version) < LooseVersion(cache_min_version):
msg = "Error: docker version is %s. Minimum version required for builds option is %s. Use `pip install --upgrade docker` to upgrade."
client.module.fail(msg=(msg % (docker_version, )))
client.module.fail(msg=(msg % (docker_version, cache_min_version)))
result = dict()