Skip to content

Commit eb0d806

Browse files
authored
Merge pull request #1672 from docker/2.4.2-release
2.4.2 release
2 parents 65e01f2 + 43f87e9 commit eb0d806

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

docker/utils/ports.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ def port_range(start, end, proto, randomly_available_port=False):
5454

5555

5656
def split_port(port):
57+
if hasattr(port, 'legacy_repr'):
58+
# This is the worst hack, but it prevents a bug in Compose 1.14.0
59+
# https://github.com/docker/docker-py/issues/1668
60+
# TODO: remove once fixed in Compose stable
61+
port = port.legacy_repr()
5762
port = str(port)
5863
match = PORT_SPEC.match(port)
5964
if match is None:

docker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.4.1"
1+
version = "2.4.2"
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

docs/change-log.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Change log
22
==========
33

4-
2.4.1
4+
2.4.2
55
-----
66

7-
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/35?closed=1)
7+
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/36?closed=1)
88

99
### Bugfixes
1010

0 commit comments

Comments
 (0)