Change YAML output to work around go-gypsy

This commit is contained in:
Jerome Petazzoni
2015-10-04 13:36:42 -07:00
parent 10b3a9c4e0
commit 49c17df2fd
2 changed files with 2 additions and 2 deletions

View File

@@ -63,6 +63,6 @@ for service_name, popen_object in push_operations.items():
# Write the new docker-compose.yml file.
with open(output_file, "w") as f:
yaml.safe_dump(stack, f)
yaml.safe_dump(stack, f, default_flow_style=False)
print("Wrote new compose file: {}".format(output_file))

View File

@@ -41,5 +41,5 @@ for service_name, service in stack.items():
if service_name in ports:
service["ports"] = [ ports[service_name] ]
yaml.safe_dump(stack, open(output_file, "w"))
yaml.safe_dump(stack, open(output_file, "w"), default_flow_style=False)