Kaydet (Commit) 14e61848 authored tarafından Joffrey F's avatar Joffrey F

Compose 1.14.0 hack

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst 65e01f24
......@@ -54,6 +54,11 @@ def port_range(start, end, proto, randomly_available_port=False):
def split_port(port):
if hasattr(port, 'legacy_repr'):
# This is the worst hack, but it prevents a bug in Compose 1.14.0
# https://github.com/docker/docker-py/issues/1668
# TODO: remove once fixed in Compose stable
port = port.legacy_repr()
port = str(port)
match = PORT_SPEC.match(port)
if match is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment