mirror of
https://github.com/docker/compose.git
synced 2025-07-25 14:44:29 +02:00
Make sure version line is at the top of the file
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
47b22e90f9
commit
f86fe11825
@ -78,8 +78,11 @@ def migrate(content):
|
|||||||
if volume_from.split(':', 1)[0] not in service_names:
|
if volume_from.split(':', 1)[0] not in service_names:
|
||||||
service['volumes_from'][idx] = 'container:%s' % volume_from
|
service['volumes_from'][idx] = 'container:%s' % volume_from
|
||||||
|
|
||||||
data['services'] = {name: data.pop(name) for name in data.keys()}
|
services = {name: data.pop(name) for name in data.keys()}
|
||||||
|
|
||||||
data['version'] = 2
|
data['version'] = 2
|
||||||
|
data['services'] = services
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user