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:
parent
35ab6d15df
commit
d013652dc7
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue