mirror of https://github.com/docker/compose.git
for 1.6.0 the version value needs to be a string
After conversion a file would immediately not load in docker-compose 1.6.0 with the message: ERROR: Version in "./converted.yml" is invalid - it should be a string. Signed-off-by: Anthon van der Neut anthon@mnt.org Signed-off-by: Anthon van der Neut <a.van.der.neut@ruamel.eu>
This commit is contained in:
parent
ec3af7d491
commit
1512793b30
|
@ -33,7 +33,7 @@ def migrate(content):
|
|||
|
||||
services = {name: data.pop(name) for name in data.keys()}
|
||||
|
||||
data['version'] = 2
|
||||
data['version'] = "2"
|
||||
data['services'] = services
|
||||
create_volumes_section(data)
|
||||
|
||||
|
|
Loading…
Reference in New Issue