Update docker-py

From 0a9512d008
This commit is contained in:
Ben Firshman 2014-01-27 15:29:31 +00:00
parent db396b81ef
commit 1bab14213d
1 changed files with 4 additions and 1 deletions

View File

@ -708,8 +708,11 @@ class Client(requests.Session):
start_config['PublishAllPorts'] = publish_all_ports
if links:
if isinstance(links, dict):
links = six.iteritems(links)
formatted_links = [
'{0}:{1}'.format(k, v) for k, v in sorted(six.iteritems(links))
'{0}:{1}'.format(k, v) for k, v in sorted(links)
]
start_config['Links'] = formatted_links