Given the following example:
version: '2'
services:
test:
image: ubuntu:14.04
stdin_open: true
tty: true
When I try to update the image key, using both the in place and write to stdout command:
yaml w docker-compose.yml services.test.image nginx:master
yaml w -i docker-compose.yml services.test.image nginx:master
I get unexpected output:
services:
test:
image: nginx:master
stdin_open: true
tty: true
version: "2"
Hi,
I'm not sure what the bug is it looks right to me :S
What am I missing?
The version key is getting reordered and double quoted. Obviously not a big deal since it still works, just something I noticed.
I also think we should provide a flag to keep the original order.
ah I see, nicely picked up. I'm going to raise to separate issues, one for the quoting and one for the ordering.
Most helpful comment
The
versionkey is getting reordered and double quoted. Obviously not a big deal since it still works, just something I noticed.