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:
Anthon van der Neut 2016-02-17 09:56:49 +01:00 committed by Anthon van der Neut
parent ec3af7d491
commit 1512793b30
1 changed files with 1 additions and 1 deletions

View File

@ -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)