mirror of https://github.com/docker/compose.git
Bump docker Python SDK version -> 2.4.2
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
b4eaddf984
commit
5ee7aacca0
|
@ -295,24 +295,28 @@ class ServicePort(namedtuple('_ServicePort', 'target published protocol mode ext
|
|||
|
||||
if not isinstance(spec, dict):
|
||||
result = []
|
||||
for k, v in build_port_bindings([spec]).items():
|
||||
if '/' in k:
|
||||
target, proto = k.split('/', 1)
|
||||
else:
|
||||
target, proto = (k, None)
|
||||
for pub in v:
|
||||
if pub is None:
|
||||
result.append(
|
||||
cls(target, None, proto, None, None)
|
||||
)
|
||||
elif isinstance(pub, tuple):
|
||||
result.append(
|
||||
cls(target, pub[1], proto, None, pub[0])
|
||||
)
|
||||
try:
|
||||
for k, v in build_port_bindings([spec]).items():
|
||||
if '/' in k:
|
||||
target, proto = k.split('/', 1)
|
||||
else:
|
||||
result.append(
|
||||
cls(target, pub, proto, None, None)
|
||||
)
|
||||
target, proto = (k, None)
|
||||
for pub in v:
|
||||
if pub is None:
|
||||
result.append(
|
||||
cls(target, None, proto, None, None)
|
||||
)
|
||||
elif isinstance(pub, tuple):
|
||||
result.append(
|
||||
cls(target, pub[1], proto, None, pub[0])
|
||||
)
|
||||
else:
|
||||
result.append(
|
||||
cls(target, pub, proto, None, None)
|
||||
)
|
||||
except ValueError as e:
|
||||
raise ConfigurationError(str(e))
|
||||
|
||||
return result
|
||||
|
||||
return [cls(
|
||||
|
|
|
@ -2,7 +2,7 @@ PyYAML==3.11
|
|||
backports.ssl-match-hostname==3.5.0.1; python_version < '3'
|
||||
cached-property==1.2.0
|
||||
colorama==0.3.7
|
||||
docker==2.3.0
|
||||
docker==2.4.2
|
||||
dockerpty==0.4.1
|
||||
docopt==0.6.1
|
||||
enum34==1.0.4; python_version < '3.4'
|
||||
|
|
Loading…
Reference in New Issue