Handle mismatched network formats in config files
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
e5689afe4c
commit
f4a22b94ed
7 changed files with 83 additions and 10 deletions
|
|
@ -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={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue