Browse Source

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
changes/09/533209/1
Thomas Bechtold 4 years ago
parent
commit
e7cde3b2e5
  1. 4
      contrib/heat_docker/heat_docker/resources/docker_container.py
  2. 2
      contrib/heat_docker/requirements.txt

4
contrib/heat_docker/heat_docker/resources/docker_container.py

@ -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):

2
contrib/heat_docker/requirements.txt

@ -1 +1 @@
docker-py>=0.2.2
docker>=2.4.2 # Apache-2.0
Loading…
Cancel
Save