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

Fixed broken volumes_from for client API >= 1.10

This commit is contained in:
Sergey Zhukov 2015-01-30 19:58:12 +03:00 committed by Matt Clay
parent 35ab6d15df
commit d013652dc7

View file

@ -737,6 +737,8 @@ class DockerManager(object):
'tty': self.module.params.get('tty'), 'tty': self.module.params.get('tty'),
'volumes_from': self.module.params.get('volumes_from'), 'volumes_from': self.module.params.get('volumes_from'),
} }
if docker.utils.compare_version('1.10', self.client.version()['ApiVersion']) >= 0:
params['volumes_from'] = ""
if params['volumes_from'] is not None: if params['volumes_from'] is not None:
self.ensure_capability('volumes_from') self.ensure_capability('volumes_from')