From 7e2486c3d9edc94300a58f5e8203277fd5d7e01d Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Tue, 20 Jun 2017 22:14:03 +0000 Subject: Upgrade from docker-py to docker The pypi package 'docker-py' [1] has been renamed to 'docker' [2]. It is better to move to the new 'docker' package because the old package will be deprecated and all the new features will go into the new package only. Package 'docker' has been added to requirements [3]. The old package 'docker-py' is still allowed to be in the global requirements during the transition period but it should be removed after all or most of the projects finsih the migration. [1] https://pypi.python.org/pypi/docker-py [2] https://pypi.python.org/pypi/docker [3] https://review.openstack.org/#/c/423715/ Change-Id: I3ffd8bb6461e8b7edacc5e833754f00c4249b854 --- kolla/image/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kolla/image') diff --git a/kolla/image/build.py b/kolla/image/build.py index 28e3afe59..57a90c343 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -132,7 +132,7 @@ class DockerTask(task.Task): if self._dc is not None: return self._dc docker_kwargs = self.docker_kwargs.copy() - self._dc = docker.Client(version='auto', **docker_kwargs) + self._dc = docker.APIClient(version='auto', **docker_kwargs) return self._dc -- cgit v1.2.3