mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #13728 from ticosax/remove-bbb-code
Since we do not support older versions of docker-py than 0.3.2
This commit is contained in:
commit
2c7a8d265e
@ -903,32 +903,16 @@ def start(container,
|
||||
'port_bindings must be formatted as a dictionary of '
|
||||
'dictionaries'
|
||||
)
|
||||
try:
|
||||
client.start(dcontainer,
|
||||
binds=binds,
|
||||
port_bindings=bindings,
|
||||
lxc_conf=lxc_conf,
|
||||
publish_all_ports=publish_all_ports,
|
||||
links=links,
|
||||
privileged=privileged,
|
||||
dns=dns,
|
||||
volumes_from=volumes_from,
|
||||
network_mode=network_mode)
|
||||
except TypeError:
|
||||
# maybe older version of docker-py <= 0.3.1 dns and
|
||||
# volumes_from are not accepted
|
||||
# FIXME:
|
||||
# Ideally we should write an explicit check based on
|
||||
# version of docker-py package, but
|
||||
# https://github.com/dotcloud/docker-py/issues/216
|
||||
# prevents us to do it at the time I'm writing this.
|
||||
client.start(dcontainer,
|
||||
binds=binds,
|
||||
port_bindings=bindings,
|
||||
lxc_conf=lxc_conf,
|
||||
publish_all_ports=publish_all_ports,
|
||||
links=links,
|
||||
privileged=privileged)
|
||||
client.start(dcontainer,
|
||||
binds=binds,
|
||||
port_bindings=bindings,
|
||||
lxc_conf=lxc_conf,
|
||||
publish_all_ports=publish_all_ports,
|
||||
links=links,
|
||||
privileged=privileged,
|
||||
dns=dns,
|
||||
volumes_from=volumes_from,
|
||||
network_mode=network_mode)
|
||||
|
||||
if is_running(dcontainer):
|
||||
_valid(status,
|
||||
|
Loading…
Reference in New Issue
Block a user