Fix config command to print the new sections of the config

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-01-14 15:09:04 -05:00
commit 3021ee12fe
3 changed files with 30 additions and 13 deletions

View file

@ -217,7 +217,7 @@ class TopLevelCommand(DocoptCommand):
compose_config = dict(
(service.pop('name'), service) for service in compose_config.services)
print(yaml.dump(
print(yaml.safe_dump(
compose_config,
default_flow_style=False,
indent=2,