heat_docker: Require docker instead of docker-py
docker-py was renamed to docker. Use docker with the version mentioned in global-requirements. Also docker.Client was renamed to docker.APIClient (see [1]). [1] https://docker-py.readthedocs.io/en/stable/change-log.html#breaking-changes Change-Id: I041727c1817c55be5265cc77d6ab9b5db5bf5dcf
This commit is contained in:
parent
81d55b2d68
commit
e7cde3b2e5
@ -332,9 +332,9 @@ class DockerContainer(resource.Resource):
|
||||
if DOCKER_INSTALLED:
|
||||
endpoint = self.properties.get(self.DOCKER_ENDPOINT)
|
||||
if endpoint:
|
||||
client = docker.Client(endpoint)
|
||||
client = docker.APIClient(endpoint)
|
||||
else:
|
||||
client = docker.Client()
|
||||
client = docker.APIClient()
|
||||
return client
|
||||
|
||||
def _parse_networkinfo_ports(self, networkinfo):
|
||||
|
@ -1 +1 @@
|
||||
docker-py>=0.2.2
|
||||
docker>=2.4.2 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user