From d013652dc7df76a9917c0ce4694a8062248b476f Mon Sep 17 00:00:00 2001 From: Sergey Zhukov Date: Fri, 30 Jan 2015 19:58:12 +0300 Subject: [PATCH] Fixed broken volumes_from for client API >= 1.10 --- lib/ansible/modules/cloud/docker/docker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index b08fbc75f2..3b54c2d663 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -737,6 +737,8 @@ class DockerManager(object): 'tty': self.module.params.get('tty'), '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: self.ensure_capability('volumes_from')