pass the real version and not a default one

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/03f5d803
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/03f5d803
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/03f5d803

Branch: refs/heads/trunk
Commit: 03f5d80393b3a005514d06be7fc50a2683923a4e
Parents: 26670ab
Author: johnnyWalnut <ikaryd...@gmail.com>
Authored: Fri Jun 2 14:05:19 2017 +0200
Committer: Anthony Shaw <anthonys...@apache.org>
Committed: Fri Aug 11 14:43:39 2017 +1000

----------------------------------------------------------------------
 libcloud/container/drivers/docker.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/03f5d803/libcloud/container/drivers/docker.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/docker.py 
b/libcloud/container/drivers/docker.py
index 5b9536b..b69b1ee 100644
--- a/libcloud/container/drivers/docker.py
+++ b/libcloud/container/drivers/docker.py
@@ -247,6 +247,8 @@ class DockerContainerDriver(ContainerDriver):
         self.connection.secure = secure
         self.connection.host = host
         self.connection.port = port
+        # set API version
+        self.version = self._get_api_version()
 
     def _ex_connection_class_kwargs(self):
         kwargs = {}

Reply via email to