Handle mismatched network formats in config files

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-02-18 14:52:52 -08:00 committed by Daniel Nephin
commit f4a22b94ed
7 changed files with 83 additions and 10 deletions

View file

@ -565,7 +565,7 @@ class ProjectTest(DockerClientTestCase):
'name': 'web',
'image': 'busybox:latest',
'command': 'top',
'networks': ['foo', 'bar', 'baz'],
'networks': {'foo': None, 'bar': None, 'baz': None},
}],
volumes={},
networks={
@ -598,7 +598,7 @@ class ProjectTest(DockerClientTestCase):
services=[{
'name': 'web',
'image': 'busybox:latest',
'networks': ['front'],
'networks': {'front': None},
}],
volumes={},
networks={