Fix config command to print the new sections of the config
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
0f234154c2
commit
3021ee12fe
3 changed files with 30 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue